diff --git a/.github/workflows/buildAndPushContainer.yml b/.github/workflows/buildAndPushContainer.yml index 2230926..01dbca4 100644 --- a/.github/workflows/buildAndPushContainer.yml +++ b/.github/workflows/buildAndPushContainer.yml @@ -8,6 +8,8 @@ on: push: branches: - main + pull_request: + branches: [ "**" ] jobs: build: @@ -44,10 +46,13 @@ jobs: - name: Docker Scout id: docker-scout + if: ${{ github.event_name == 'pull_request' }} uses: docker/scout-action@v1 with: command: quickview,cves,recommendations,sbom to-latest: true ignore-base: true ignore-unchanged: true - only-fixed: true \ No newline at end of file + only-severities: critical,high + write-comment: true + github-token: ${{ secrets.GH_TOKEN }} \ No newline at end of file