Skip to content

Commit 500b67e

Browse files
author
jovanSAPFIONEER
committed
ci: restore SHA-pinned OpenSSF Scorecard workflow
Scorecard workflow was missing from main - all 15 open alerts (#1-#15) are anchored to stale commit d5a43ef. Restoring scorecard.yml with all actions SHA-pinned will trigger a fresh Scorecard run that re-evaluates: - Token-Permissions (#14, #15): permissions already set in ci.yml + codeql.yml - Branch-Protection (#1): branch protection already enabled via API - Pinned-Dependencies (#2-#9): ci.yml + codeql.yml already SHA-pinned - Pinned-Dependencies (#10-#13): scorecard.yml now SHA-pinned Actions pinned: actions/checkout de0fac2e # v6 ossf/scorecard-action 62b2cac7 # v2.4.0 actions/upload-artifact ea165f8d # v4 github/codeql-action/... 9e907b5e # v3
1 parent 2875269 commit 500b67e

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: OpenSSF Scorecard
2+
3+
"on":
4+
push:
5+
branches: [main]
6+
schedule:
7+
- cron: '30 5 * * 1' # Every Monday at 05:30 UTC
8+
workflow_dispatch:
9+
10+
permissions: read-all
11+
12+
jobs:
13+
analysis:
14+
name: Scorecard analysis
15+
runs-on: ubuntu-latest
16+
permissions:
17+
security-events: write
18+
id-token: write
19+
contents: read
20+
actions: read
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run analysis
29+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
publish_results: true
34+
35+
- name: Upload artifact
36+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
37+
with:
38+
name: SARIF file
39+
path: results.sarif
40+
retention-days: 5
41+
42+
- name: Upload to GitHub Code Scanning
43+
uses: github/codeql-action/upload-sarif@9e907b5e64f6b83e7804b09294d44122997950d6 # v3
44+
with:
45+
sarif_file: results.sarif

0 commit comments

Comments
 (0)