From 2d5d29de549e5c75fe0d67d41450138077b318a2 Mon Sep 17 00:00:00 2001 From: Francisco de Borja Aranda Castillejo Date: Tue, 23 Jul 2024 15:54:46 +0200 Subject: [PATCH] ci: fix govulncheck workflow Signed-off-by: Francisco de Borja Aranda Castillejo --- .github/workflows/govulncheck.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/govulncheck.yml diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml new file mode 100644 index 00000000..6082279d --- /dev/null +++ b/.github/workflows/govulncheck.yml @@ -0,0 +1,36 @@ +name: 'Go vulnerability check' + +on: + push: + branches: + - main + pull_request: + branches: + - '*' + types: + - synchronize + - opened + - reopened + - ready_for_review + +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: Run govulncheck + id: govulncheck + uses: golang/govulncheck-action@v1 + with: + check-latest: true + go-version-input: 1.22 + go-package: ./... + output-format: sarif + output-file: govulncheck.sarif + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: ${{ steps.govulncheck.outputs.sarif }}