Browse Source

Update SARIF upload to use proper branch (#360)

pull/362/head
Matt Andreko 9 months ago committed by GitHub
parent
commit
068ad76fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/build-unified.yml
  2. 2
      .github/workflows/scan.yml

2
.github/workflows/build-unified.yml

@ -175,6 +175,8 @@ jobs: @@ -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' }}

2
.github/workflows/scan.yml

@ -46,6 +46,8 @@ jobs: @@ -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

Loading…
Cancel
Save