Skip to content

Commit ecc3599

Browse files
authored
Merge pull request #29 from SafetyMP/fix/code-scanning-workflows
fix(security): add OpenSSF Scorecard workflow
2 parents 10c3d35 + 93c39a8 commit ecc3599

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

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

0 commit comments

Comments
 (0)