Skip to content

Commit 0cbde37

Browse files
committed
Setup Trivy scanning for supported release branches
1 parent 2099c27 commit 0cbde37

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/scan.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ permissions: {}
1010

1111
jobs:
1212
scan:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
branch: [ main, release-2.2, release-2.1, release-2.0 ]
1317
name: Trivy
1418
runs-on: ubuntu-latest
1519
steps:
1620
- name: Check out code
1721
uses: actions/[email protected]
22+
with:
23+
ref: ${{ matrix.branch }}
1824
- name: Setup go
1925
uses: actions/setup-go@v4
2026
with:
21-
go-version: 1.20
27+
go-version-file: '${{ github.workspace }}/go.mod'
2228
- name: Run verify container script
2329
run: make verify-container-images

0 commit comments

Comments
 (0)