diff --git a/.github/workflows/build-unified.yml b/.github/workflows/build-unified.yml index 0d1f6d6..452177c 100644 --- a/.github/workflows/build-unified.yml +++ b/.github/workflows/build-unified.yml @@ -175,6 +175,8 @@ jobs: uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9 with: sarif_file: ${{ steps.container-scan.outputs.sarif }} + sha: ${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.sha || github.sha }} + ref: ${{ contains(github.event_name, 'pull_request') && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }} - name: Log out of Docker if: ${{ env.is_publish_branch == 'true' }} diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index a327212..ae08813 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -46,6 +46,8 @@ jobs: uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9 with: sarif_file: cx_result.sarif + sha: ${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.sha || github.sha }} + ref: ${{ contains(github.event_name, 'pull_request') && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }} quality: name: Quality scan