Skip to content

Commit d1b22f5

Browse files
committed
chore(ci): add OpenSSF scorecard
1 parent 15894e6 commit d1b22f5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/scorecard.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Scorecard
2+
on:
3+
branch_protection_rule:
4+
schedule:
5+
- cron: "42 4 * * SAT"
6+
push:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
analysis:
15+
name: Scorecard analysis
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
security-events: write
20+
steps:
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
with:
23+
persist-credentials: false
24+
- uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
25+
with:
26+
results_file: results.sarif
27+
results_format: sarif
28+
publish_results: true
29+
- uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
30+
with:
31+
sarif_file: results.sarif

0 commit comments

Comments
 (0)