Skip to content

Commit f9b56cc

Browse files
authored
Merge pull request #216 from bingenito/scorecard-permissions
Use default GitHub OIDC instead of PAT
2 parents eb1dec0 + 123a7c8 commit f9b56cc

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/scorecards.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44

55
name: Scorecard supply-chain security
66
on:
7-
# For Branch-Protection check. Only the default branch is supported. See
8-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9-
branch_protection_rule:
10-
# To guarantee Maintained check is occasionally updated. See
11-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
7+
push:
8+
# Only the default branch is supported.
9+
branches:
10+
- main
1211
schedule:
1312
- cron: '20 13 * * 3'
14-
push:
15-
branches: [ "main" ]
1613

1714
# Declare default permissions as read only.
1815
permissions: read-all
@@ -41,19 +38,6 @@ 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 }}
49-
50-
# Public repositories:
51-
# - Publish results to OpenSSF REST API for easy access by consumers
52-
# - Allows the repository to include the Scorecard badge.
53-
# - 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.
5741
publish_results: true
5842

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

0 commit comments

Comments
 (0)