Skip to content

Commit aa1bcc9

Browse files
committed
chore: allow cve checker to run on any image specified by hand
1 parent 58956c3 commit aa1bcc9

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/container-check.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Container Security Scan
33
on:
44
# Allow manual triggering
55
workflow_dispatch:
6+
inputs:
7+
image_name:
8+
type: string
9+
description: 'Docker image name to scan'
10+
required: false
11+
default: 'supertokens/supertokens-postgresql:latest'
612

713
# Run automatically once a day at 2 AM UTC
814
schedule:
@@ -19,7 +25,7 @@ jobs:
1925
uses: Azure/container-scan@v0
2026
continue-on-error: true
2127
with:
22-
image-name: supertokens/supertokens-postgresql:latest
28+
image-name: ${{ github.event.inputs.image_name }}
2329
severity-threshold: LOW
2430
run-quality-checks: false
2531
env:
@@ -39,7 +45,7 @@ jobs:
3945
run: |
4046
echo "summary<<EOF" >> $GITHUB_OUTPUT
4147
42-
echo "**Image:** \`supertokens/supertokens-postgresql:latest\`\n" >> $GITHUB_OUTPUT
48+
echo "**Image:** \`${{ github.event.inputs.image_name }}\`\n" >> $GITHUB_OUTPUT
4349
echo "**Scan Date:** \`$(date -u)\`\n" >> $GITHUB_OUTPUT
4450
echo "\n" >> $GITHUB_OUTPUT
4551
@@ -75,7 +81,7 @@ jobs:
7581
7682
- name: Add to Action Summary
7783
run: |
78-
echo "**Image:** \`supertokens/supertokens-postgresql:latest\`" >> $GITHUB_STEP_SUMMARY
84+
echo "**Image:** \`${{ github.event.inputs.image_name }}\`" >> $GITHUB_STEP_SUMMARY
7985
echo "" >> $GITHUB_STEP_SUMMARY
8086
echo "**Scan Date:** \`$(date -u)\`" >> $GITHUB_STEP_SUMMARY
8187
echo "" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)