Skip to content
Open
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
8 changes: 5 additions & 3 deletions .github/workflows/openssf-scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
publish-results:
description: |-
Whether to publish results.
Note that the `id-token: write` permission is required irrespective of this input (but only used if true).
Note that the `id-token: write` permission is required irrespective of this input,
as the permissions config cannot be made conditional based on inputs.
It is only used when publishing results though (i.e. when this is `true`).
type: boolean

permissions: {}
Expand All @@ -17,8 +19,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
security-events: write
id-token: write # for result authenticity verification when publishing on scorecard.dev
security-events: write # for issuing code scanning findings in the GitHub project
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self-codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
security-events: write # for issuing code scanning findings in thue GitHub project
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/self-scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
scorecard:
permissions:
contents: read
id-token: write
security-events: write
id-token: write # for result authenticity verification when publishing on scorecard.dev
security-events: write # for issuing code scanning findings in the GitHub project
uses: ./.github/workflows/openssf-scorecard.yaml
with:
publish-results: true