From 84988d84a788e9dbed68e9ca93e4766282d5778e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matczuk?= Date: Thu, 14 Dec 2023 10:01:04 +0100 Subject: [PATCH] gh: add govulncheck Fixes #599 --- .github/workflows/govulncheck.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 000000000..a92a340c6 --- /dev/null +++ b/.github/workflows/govulncheck.yml @@ -0,0 +1,29 @@ +--- +name: Vulnerability check + +on: + push: + branches: [main] + pull_request: + branches: [main] + paths: + - 'go.mod' + - 'go.sum' + +jobs: + govulncheck: + runs-on: ubuntu-latest + name: Run govulncheck + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set version env variables + run: | + cat .version >> $GITHUB_ENV + + - id: Run govulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: "${{env.GO_VERSION}}" + go-package: ./...