Skip to content

Commit aaf40bd

Browse files
authored
Add the GitHub Action for Scorecard analysis
1 parent fd79179 commit aaf40bd

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/scorecards.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Scorecard"
2+
3+
on:
4+
branch_protection_rule:
5+
schedule:
6+
- cron: "0 0 * * 5"
7+
push:
8+
branches: ["main"]
9+
10+
permissions: "read-all"
11+
12+
jobs:
13+
analyze:
14+
name: Scorecards analysis
15+
runs-on: ubuntu-latest
16+
permissions:
17+
security-events: write
18+
id-token: write
19+
contents: read
20+
actions: read
21+
22+
steps:
23+
- name: "Checkout repository"
24+
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
25+
with:
26+
persist-credentials: false
27+
28+
- name: "Run analysis"
29+
uses: ossf/scorecard-action@3e15ea8318eee9b333819ec77a36aca8d39df13e
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
publish_results: true

0 commit comments

Comments
 (0)