Skip to content

Commit 2a406e8

Browse files
authored
[CI] Fix repo_token parameter (#263)
* Fix repo_token mention * remove comment about private repos Signed-off-by: Joyce <[email protected]>
1 parent 7f639c1 commit 2a406e8

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/scorecard.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ jobs:
2626
security-events: write
2727
# Needed to publish results and get a badge (see publish_results below).
2828
id-token: write
29-
# Uncomment the permissions below if installing in a private repository.
30-
# contents: read
31-
# actions: read
3229

3330
steps:
3431
- name: "Checkout code"
@@ -41,19 +38,13 @@ jobs:
4138
with:
4239
results_file: results.sarif
4340
results_format: sarif
44-
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
45-
# - you want to enable the Branch-Protection check on a *public* repository, or
46-
# - you are installing Scorecard on a *private* repository
47-
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
48-
repo-token: ${{ secrets.SCORECARD_TOKEN }}
41+
# To enable the Branch-Protection check on a *public* repository
42+
repo_token: ${{ secrets.SCORECARD_TOKEN }}
4943

5044
# Public repositories:
5145
# - Publish results to OpenSSF REST API for easy access by consumers
5246
# - Allows the repository to include the Scorecard badge.
5347
# - See https://github.com/ossf/scorecard-action#publishing-results.
54-
# For private repositories:
55-
# - `publish_results` will always be set to `false`, regardless
56-
# of the value entered here.
5748
publish_results: true
5849

5950
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF

0 commit comments

Comments
 (0)