Skip to content

Commit fbdb76a

Browse files
Merge pull request #71 from step-security/update-scorecards
Update scorecard-analysis.yml
2 parents d999ce9 + a6ef55d commit fbdb76a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/scorecard-analysis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ permissions: read-all
1111

1212
jobs:
1313
analysis:
14+
permissions:
15+
actions: read # for ossf/scorecard-actions/analyze to check for publishing workflows
16+
checks: read # for ossf/scorecard-actions/analyze to check for SAST tool in check runs
17+
contents: read # for ossf/scorecard-actions/analyze to list releases
18+
issues: read # for ossf/scorecard-actions/analyze to check if repo is maintained
19+
pull-requests: read # for ossf/scorecard-actions/analyze to check if PRs are reviewed
20+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
21+
statuses: read # for ossf/scorecard-actions/analyze to check for CI tests in PRs
1422
name: Scorecard analysis
1523
runs-on: ubuntu-latest
16-
permissions:
17-
contents: read
18-
security-events: write
19-
2024
steps:
2125
- uses: step-security/harden-runner@917f7d59f22e82a5ddcaef409923426fd7aa6327
2226
- name: "Checkout code"
@@ -42,4 +46,4 @@ jobs:
4246
- name: "Upload SARIF results"
4347
uses: github/codeql-action/upload-sarif@e095058bfa09de8070f94e98f5dc059531bc6235
4448
with:
45-
sarif_file: results.sarif
49+
sarif_file: results.sarif

0 commit comments

Comments
 (0)