Skip to content

Commit ddc3881

Browse files
committed
ci(grype): fail-build-pr-only
1 parent 4cc7df3 commit ddc3881

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/scans.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
uses: anchore/scan-action@1638637db639e0ade3258b51db49a9a137574c3e # v6
126126
with:
127127
path: .
128+
fail-build: ${{ github.event_name == 'pull_request' }}
128129
severity-cutoff: high
129130
only-fixed: true
130131

@@ -154,6 +155,7 @@ jobs:
154155
uses: anchore/scan-action@1638637db639e0ade3258b51db49a9a137574c3e # v6
155156
with:
156157
image: ${{ env.IMAGE_ID }}
158+
fail-build: ${{ github.event_name == 'pull_request' }}
157159
severity-cutoff: high
158160
only-fixed: true
159161
env:

0 commit comments

Comments
 (0)