From aa1bcc9727b4f12dd979f974629e668ba3a330c4 Mon Sep 17 00:00:00 2001 From: tamassoltesz Date: Wed, 6 Aug 2025 12:35:48 +0200 Subject: [PATCH] chore: allow cve checker to run on any image specified by hand --- .github/workflows/container-check.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/container-check.yml b/.github/workflows/container-check.yml index 25d8caa2c..83adb4ddc 100644 --- a/.github/workflows/container-check.yml +++ b/.github/workflows/container-check.yml @@ -3,6 +3,12 @@ name: Container Security Scan on: # Allow manual triggering workflow_dispatch: + inputs: + image_name: + type: string + description: 'Docker image name to scan' + required: false + default: 'supertokens/supertokens-postgresql:latest' # Run automatically once a day at 2 AM UTC schedule: @@ -19,7 +25,7 @@ jobs: uses: Azure/container-scan@v0 continue-on-error: true with: - image-name: supertokens/supertokens-postgresql:latest + image-name: ${{ github.event.inputs.image_name }} severity-threshold: LOW run-quality-checks: false env: @@ -39,7 +45,7 @@ jobs: run: | echo "summary<> $GITHUB_OUTPUT - echo "**Image:** \`supertokens/supertokens-postgresql:latest\`\n" >> $GITHUB_OUTPUT + echo "**Image:** \`${{ github.event.inputs.image_name }}\`\n" >> $GITHUB_OUTPUT echo "**Scan Date:** \`$(date -u)\`\n" >> $GITHUB_OUTPUT echo "\n" >> $GITHUB_OUTPUT @@ -75,7 +81,7 @@ jobs: - name: Add to Action Summary run: | - echo "**Image:** \`supertokens/supertokens-postgresql:latest\`" >> $GITHUB_STEP_SUMMARY + echo "**Image:** \`${{ github.event.inputs.image_name }}\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "**Scan Date:** \`$(date -u)\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY