diff --git a/.github/workflows/vulnerability-scan.yml b/.github/workflows/vulnerability-scan.yml index d371d5cb..18242dd0 100644 --- a/.github/workflows/vulnerability-scan.yml +++ b/.github/workflows/vulnerability-scan.yml @@ -30,15 +30,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Set summary - run: echo "${{ github.event.inputs.summary }}" >> $GITHUB_STEP_SUMMARY - - if: github.event.inputs.tag == '5.x' + run: echo "${{ inputs.summary }}" >> $GITHUB_STEP_SUMMARY + - if: inputs.tag == '5.x' uses: druzsan/setup-matrix@v2 with: matrix: | images: ${{ vars.IMAGES }} exclude: - images: mailpit - - if: github.event.inputs.tag != '5.x' + - if: inputs.tag != '5.x' uses: druzsan/setup-matrix@v2 with: matrix: | @@ -54,7 +54,7 @@ jobs: id: checkout uses: actions/checkout@main with: - ref: ${{ github.event.inputs.tag }} + ref: ${{ inputs.tag }} outputs: ref: ${{ steps.checkout.outputs.ref }} commit: ${{ steps.checkout.outputs.commit }} @@ -68,7 +68,7 @@ jobs: id: scan uses: crazy-max/ghaction-container-scan@v3 with: - image: ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images }}:${{ github.event.inputs.tag }} + image: ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images }}:${{ inputs.tag }} dockerfile: ./images/${{ matrix.images }} - name: Upload SARIF file if: ${{ steps.scan.outputs.sarif != '' }}