Skip to content

Commit 00efce5

Browse files
authored
chore: add OpenSSF Scorecard workflow (audit #256) (#524)
1 parent dc1dc13 commit 00efce5

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: OpenSSF Scorecard
2+
on:
3+
branch_protection_rule:
4+
schedule:
5+
- cron: '17 3 * * 6'
6+
push:
7+
branches: [main]
8+
9+
permissions: read-all
10+
11+
jobs:
12+
analysis:
13+
name: Scorecard analysis
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
id-token: write
18+
contents: read
19+
actions: read
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
persist-credentials: false
25+
26+
- uses: ossf/scorecard-action@v2.4.2
27+
with:
28+
results_file: results.sarif
29+
results_format: sarif
30+
publish_results: true
31+
32+
- uses: actions/upload-artifact@v4
33+
with:
34+
name: SARIF file
35+
path: results.sarif
36+
retention-days: 5
37+
38+
- uses: github/codeql-action/upload-sarif@v3
39+
with:
40+
sarif_file: results.sarif

0 commit comments

Comments
 (0)