From 2289fb972e2b6847bca4d2e79ce653316492a9a6 Mon Sep 17 00:00:00 2001 From: Guillermo Gaston Date: Thu, 26 Oct 2023 15:06:02 +0000 Subject: [PATCH] Add actions for vulnerability scans --- .github/workflows/vulnerability.yml | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/vulnerability.yml diff --git a/.github/workflows/vulnerability.yml b/.github/workflows/vulnerability.yml new file mode 100644 index 000000000000..edb9148cdd49 --- /dev/null +++ b/.github/workflows/vulnerability.yml @@ -0,0 +1,43 @@ +name: "Vulnerability scan" +on: + push: + tags: + - v* + branches: + - main + pull_request: + workflow_dispatch: + schedule: + # every day at 7am UTC + - cron: '0 7 * * *' +permissions: + contents: read +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: "Checkout Repository" + uses: actions/checkout@v4 + with: + show-progress: false + - name: "Dependency Review" + uses: actions/dependency-review-action@v3 + govulncheck: + runs-on: ubuntu-latest + steps: + - name: "Checkout Repository" + uses: actions/checkout@v4 + with: + show-progress: false + - name: govulncheck + uses: golang/govulncheck-action@v1 + with: + repo-checkout: false + go-version-file: go.mod + - name: govulncheck for release module + uses: golang/govulncheck-action@v1 + with: + repo-checkout: false + cache: false # cache will be already setup by previous step + work-dir: release + go-version-file: release/go.mod