Skip to content

Commit aebc13a

Browse files
committed
FIXUP: configure once
1 parent 3ad3011 commit aebc13a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/trivy.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ env:
1212
# https://github.com/actions/setup-go/issues/457
1313
GOTOOLCHAIN: local
1414

15+
# Use the committed Trivy configuration files.
16+
TRIVY_IGNOREFILE: .trivyignore.yaml
17+
TRIVY_SECRET_CONFIG: trivy-secret.yaml
18+
1519
jobs:
1620
cache:
1721
# Run only one of these jobs at a time across the entire project.
@@ -54,7 +58,6 @@ jobs:
5458
env:
5559
TRIVY_DEBUG: true
5660
TRIVY_EXIT_CODE: 1
57-
TRIVY_IGNOREFILE: .trivyignore.yaml
5861
TRIVY_SCANNERS: license
5962
with:
6063
cache: restore,use
@@ -75,9 +78,7 @@ jobs:
7578
uses: ./.github/actions/trivy
7679
env:
7780
TRIVY_EXIT_CODE: 1
78-
TRIVY_IGNOREFILE: .trivyignore.yaml
7981
TRIVY_SCANNERS: secret
80-
TRIVY_SECRET_CONFIG: trivy-secret.yaml
8182
with:
8283
cache: restore,use
8384
database: skip

0 commit comments

Comments
 (0)