Skip to content

Commit e9fb0bd

Browse files
committed
Refactor OpenSSF Scorecard workflow by removing commented sections and streamlining permissions
1 parent b075a7d commit e9fb0bd

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/openssf-scorecard.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
name: OpenSSF Scorecard Analysis
22

33
on:
4-
# For Branch-Protection check. Only the default branch is supported.
54
branch_protection_rule:
6-
# To guarantee Maintained check is occasionally updated.
75
push:
86
branches: [ main ]
9-
# For manual triggering
107
workflow_dispatch:
11-
# Run weekly to track progress
128
schedule:
13-
- cron: '0 0 * * 1' # Run every Monday at midnight
9+
- cron: '0 0 * * 1'
1410

1511
permissions: read-all
1612

@@ -19,9 +15,7 @@ jobs:
1915
name: OpenSSF Scorecard Analysis
2016
runs-on: ubuntu-latest
2117
permissions:
22-
# Needed to upload the results to code-scanning dashboard.
2318
security-events: write
24-
# Needed to publish results and get a badge (see publish_results below).
2519
id-token: write
2620

2721
steps:
@@ -35,21 +29,16 @@ jobs:
3529
with:
3630
results_file: results.sarif
3731
results_format: sarif
38-
# A read-only PAT token, which is needed for the Branch-Protection check.
3932
repo_token: ${{ secrets.SCORECARD_TOKEN }}
40-
# Publish results to enable scorecard badges. For more details, see
41-
# https://github.com/ossf/scorecard-action#publishing-results
4233
publish_results: true
4334

44-
# Upload the results as artifacts.
4535
- name: "Upload artifact"
4636
uses: actions/upload-artifact@v4
4737
with:
4838
name: SARIF file
4939
path: results.sarif
5040
retention-days: 5
5141

52-
# Upload the results to GitHub's code scanning dashboard.
5342
- name: "Upload to code-scanning"
5443
uses: github/codeql-action/upload-sarif@v3
5544
with:

0 commit comments

Comments
 (0)