Fix Trivy SARIF upload attributing RC findings to main (#46068)

This commit is contained in:
Luke Heath
2026-05-22 11:19:51 -05:00
committed by GitHub
parent 3ccf17f8ac
commit 83d06739a2
+7
View File
@@ -104,6 +104,10 @@ jobs:
with:
ref: ${{ matrix.branch || github.ref }}
- name: Capture checked-out commit SHA
id: sha
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: ${{env.AWS_IAM_ROLE}}
@@ -150,3 +154,6 @@ jobs:
with:
sarif_file: "trivy-results.sarif"
category: trivy-${{ matrix.branch }}
ref: refs/heads/${{ matrix.branch }}
sha: ${{ steps.sha.outputs.sha }}
checkout_path: ${{ github.workspace }}