Skip to content

Commit 8968bf6

Browse files
committed
Set security GH action to enforcing
1 parent 1a039a7 commit 8968bf6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/security.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
govulncheck:
2424
name: Go vulnerability check
2525
runs-on: ubuntu-latest
26-
continue-on-error: true # remove to enforce
2726
steps:
2827
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2928
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
@@ -54,16 +53,13 @@ jobs:
5453
- name: Trivy filesystem scan
5554
uses: aquasecurity/[email protected]
5655
id: trivy_scan
57-
continue-on-error: true # remove to enforce; paired with exit-code below
5856
with:
5957
scan-type: fs
6058
scanners: vuln,secret,misconfig
6159
ignore-unfixed: true
6260
format: sarif
6361
output: trivy-fs.sarif
64-
# Include all severities for testing - Consider removing UNKNOWN,LOW,MEDIUM when enforcing.
65-
severity: UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
66-
exit-code: 1 # Remove to enforce failure on high/critical
62+
severity: MEDIUM,HIGH,CRITICAL
6763
- name: Upload Trivy SARIF artifact
6864
if: always()
6965
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)