diff --git a/.github/workflows/vulncheck.yaml b/.github/workflows/vulncheck.yaml new file mode 100644 index 00000000..a3b31899 --- /dev/null +++ b/.github/workflows/vulncheck.yaml @@ -0,0 +1,35 @@ +name: Vulnerability check + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +permissions: + contents: read + +jobs: + vulncheck: + name: vulncheck (${{ matrix.branch }}) + runs-on: ubuntu-latest + permissions: + contents: read + strategy: + fail-fast: false + matrix: + branch: [main, release-0.2] + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ matrix.branch }} + persist-credentials: false + + - name: Set up Go + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + with: + go-version-file: go.mod + cache: true # zizmor: ignore[cache-poisoning] + + - name: Vulnerability check + run: make vulncheck