From 94a2bbe0183e16ed9bf1c6fdcac5ee8e8e204de4 Mon Sep 17 00:00:00 2001 From: Talor Itzhak Date: Wed, 1 Jan 2025 16:59:03 +0200 Subject: [PATCH] gh-actions:govulncheck Add a new CI lane for checking go code vulnerabilities. Signed-off-by: Talor Itzhak --- .github/workflows/govulncheck.yaml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/govulncheck.yaml diff --git a/.github/workflows/govulncheck.yaml b/.github/workflows/govulncheck.yaml new file mode 100644 index 000000000..139d46f0c --- /dev/null +++ b/.github/workflows/govulncheck.yaml @@ -0,0 +1,34 @@ +name: CI vulnerability detection with govulncheck + +on: + pull_request: + branches: + - main + - "release-4.1[8]" + push: + branches: + - main + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up golang + uses: actions/setup-go@v5 + with: + go-version: 1.23.3 + + - name: Show current working directory + run: pwd + + - name: Run govulncheck + uses: golang/govulncheck-action@v1 + with: + go-package: "./..."