Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/nuget-online-convergence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
# Security hardening: do not checkout workflow_run head_sha in a privileged workflow.
# Always use the trusted default branch content for verifier scripts.
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Resolve release metadata
id: meta
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

permissions:
security-events: write
id-token: write
contents: read
actions: read

Expand All @@ -29,7 +28,9 @@ jobs:
with:
results_file: artifacts/ci/scorecard/results.sarif
results_format: sarif
publish_results: true
# Keep deterministic local evidence + SARIF upload, avoid remote publish rejection
# when workflow permissions include security-events write for SARIF upload.
publish_results: false

- name: Upload SARIF to code scanning
uses: github/codeql-action/upload-sarif@v3
Expand Down
Loading