Skip to content

Commit 201064a

Browse files
authored
[CI] Add OpenSSF scorecard job (#614)
1 parent 383a821 commit 201064a

File tree

1 file changed

+37
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)