diff --git a/.github/actions/build-push-artifacts/action.yml b/.github/actions/build-push-artifacts/action.yml index c7779fe120..39b5cdb952 100644 --- a/.github/actions/build-push-artifacts/action.yml +++ b/.github/actions/build-push-artifacts/action.yml @@ -51,4 +51,4 @@ runs: env: GH_TOKEN: ${{ github.token }} run: | - gh workflow run -r 2188-enhanced-image-scan -F image-tag=${{ inputs.ref }} enhanced-image-scan.yml + gh workflow run -r main -F image-tag=${{ inputs.ref }} enhanced-image-scan.yml diff --git a/.github/workflows/enhanced-image-scan.yml b/.github/workflows/enhanced-image-scan.yml index 53a92f7840..ce3bd6a387 100644 --- a/.github/workflows/enhanced-image-scan.yml +++ b/.github/workflows/enhanced-image-scan.yml @@ -6,9 +6,11 @@ on: image-tag: required: true type: string + push: + branches: "2188-enhanced-image-scan" jobs: - twistlock-scan: + enhanced-image-scan: runs-on: ${{ vars.RUNS_ON }} steps: - uses: actions/checkout@v4 @@ -36,7 +38,7 @@ jobs: id: inspector with: artifact_type: 'container' - artifact_path: ${{ inputs.image-tag }} + artifact_path: 'notification_api:ce8772711cc14250b6bb7d6b894ac228c0c2658d' # ${{ inputs.image-tag }} critical_threshold: 0 # testing forced failure high_threshold: ${{ secrets.SCAN_HIGH_THRESHOLD }}