Skip to content

Commit 3c38a4c

Browse files
authored
Skip Image Scan if release flow is a dry-run (#1172)
1 parent cde2fb4 commit 3c38a4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,14 @@ jobs:
263263
image: localhost:5000/nginx/nginx-prometheus-exporter:${{ steps.meta.outputs.version }}
264264
only-fixed: true
265265
add-cpes-if-none: true
266+
if: ${{ !github.event.inputs.dry_run }}
266267

267268
- name: Upload scan result to GitHub Security tab
268269
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
269270
continue-on-error: true
270271
with:
271272
sarif_file: ${{ steps.scan.outputs.sarif }}
273+
if: ${{ !github.event.inputs.dry_run }}
272274

273275
- name: Clean up NETRC
274276
run: |

0 commit comments

Comments
 (0)