File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: Container Security Scan
33on :
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 :
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 :
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
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
You can’t perform that action at this time.
0 commit comments