Skip to content

Commit 1054cfb

Browse files
authored
chore(ci): add OpenSSF scorecard
1 parent 15894e6 commit 1054cfb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/scorecard.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Scorecard supply-chain security
2+
on:
3+
schedule:
4+
- cron: "42 4 * * 6"
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
analysis:
14+
name: Scorecard analysis
15+
runs-on: ubuntu-latest
16+
if: github.event.repository.default_branch == github.ref_name || github.event_name == "pull_request"
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@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
25+
with:
26+
results_file: results.sarif
27+
results_format: sarif
28+
publish_results: true
29+
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
30+
with:
31+
name: SARIF file
32+
path: results.sarif
33+
retention-days: 5
34+
- uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
35+
with:
36+
sarif_file: results.sarif

0 commit comments

Comments
 (0)