Skip to content

Commit 70f18c7

Browse files
Create scorecard.yml
1 parent e5343fd commit 70f18c7

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/scorecard.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Scorecards supply-chain security
2+
on:
3+
branch_protection_rule:
4+
push:
5+
branches: [main]
6+
7+
permissions: read-all
8+
9+
jobs:
10+
analysis:
11+
name: Scorecards analysis
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
actions: read
16+
contents: read
17+
id-token: write
18+
19+
steps:
20+
- name: "Checkout code"
21+
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
24+
25+
- name: "Run analysis"
26+
uses: ossf/[email protected]
27+
with:
28+
results_file: results.sarif
29+
results_format: sarif
30+
repo_token: ${{ secrets.PERSONAL_TOKEN }}
31+
publish_results: true
32+
33+
- name: "Upload artifact"
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: SARIF file
37+
path: results.sarif
38+
retention-days: 5
39+
40+
# Upload the results to GitHub's code scanning dashboard.
41+
- name: "Upload to code-scanning"
42+
uses: github/codeql-action/upload-sarif@v3
43+
with:
44+
sarif_file: results.sarif

0 commit comments

Comments
 (0)