From 5a4054eeb67436147939af4617aa0215b93fb955 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 20 Jul 2023 11:23:26 +0300 Subject: [PATCH] [#535] .forgejo: Add vulncheck workflow Signed-off-by: Evgenii Stratonikov --- .forgejo/workflows/vulncheck.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/vulncheck.yml diff --git a/.forgejo/workflows/vulncheck.yml b/.forgejo/workflows/vulncheck.yml new file mode 100644 index 000000000..9390ad2d6 --- /dev/null +++ b/.forgejo/workflows/vulncheck.yml @@ -0,0 +1,22 @@ +name: Vulncheck +on: [pull_request] + +jobs: + vulncheck: + name: Vulncheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '1.20' + + - name: Install govulncheck + run: go install golang.org/x/vuln/cmd/govulncheck@latest + + - name: Run govulncheck + run: govulncheck ./...