Skip to content

Commit cd03eb3

Browse files
committed
✨ Scorecard analysis workflow
1 parent 31bc13c commit cd03eb3

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
# Allow manually triggering the workflow.
3+
workflow_dispatch:
4+
schedule:
5+
- cron: 0 7 * * 1
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- .github/workflows/scorecard-analysis.yml
11+
12+
permissions: read-all
13+
14+
name: Scorecard Analysis
15+
jobs:
16+
analysis:
17+
name: Scorecard analysis
18+
runs-on: ubuntu-latest
19+
permissions:
20+
security-events: write
21+
id-token: write
22+
23+
steps:
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run analysis
29+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a #v2.4.3
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
publish_results: true
34+
35+
- name: Upload to code-scanning
36+
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 #4.35.1
37+
with:
38+
sarif_file: results.sarif

0 commit comments

Comments
 (0)