Skip to content

Commit 9ebabe1

Browse files
authored
ci(ossf-scorecard): added workflow calculating scorecard metrics (#2848)
1 parent e39ae90 commit 9ebabe1

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/scorecard.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: OpenSSF Scorecard
2+
"on":
3+
schedule:
4+
- cron: 31 2 * * 1
5+
push:
6+
branches:
7+
- master
8+
permissions: read-all
9+
jobs:
10+
analysis:
11+
name: Scorecard analysis
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
id-token: write
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3.1.0
19+
with:
20+
persist-credentials: false
21+
- name: Run analysis
22+
uses: ossf/scorecard-action@v2.1.2
23+
with:
24+
results_file: results.sarif
25+
results_format: sarif
26+
publish_results: true
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v3.1.0
29+
with:
30+
name: SARIF file
31+
path: results.sarif
32+
retention-days: 5
33+
- name: Upload to code-scanning
34+
uses: github/codeql-action/upload-sarif@v2.2.4
35+
with:
36+
sarif_file: results.sarif

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<a href="https://github.com/semantic-release/semantic-release/actions?query=workflow%3ATest+branch%3Amaster">
88
<img alt="Build states" src="https://github.com/semantic-release/semantic-release/workflows/Test/badge.svg">
99
</a>
10+
<a href="https://securityscorecards.dev/viewer/?uri=github.com/semantic-release/semantic-release">
11+
<img alt="OpenSSF Scorecard" src="https://api.securityscorecards.dev/projects/github.com/semantic-release/semantic-release/badge">
12+
</a>
1013
<a href="#badge">
1114
<img alt="semantic-release: angular" src="https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release">
1215
</a>

0 commit comments

Comments
 (0)