Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2fa7ad

Browse files
authored
CI: Add OSSF scorecard analysis workflow (anuraghazra#2879)
* CI: Add OSSF scorecard analysis workflow* dev* dev* dev* replace action versions with hashes* readme badge
1 parent18c9de0 commite2fa7ad

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name:OSSF Scorecard analysis workflow
2+
on:
3+
push:
4+
branches:
5+
-master
6+
pull_request:
7+
branches:
8+
-master
9+
10+
permissions:read-all
11+
12+
jobs:
13+
analysis:
14+
name:Scorecard analysis
15+
runs-on:ubuntu-latest
16+
permissions:
17+
# Needed if using Code scanning alerts
18+
security-events:write
19+
# Needed for GitHub OIDC token if publish_results is true
20+
id-token:write
21+
22+
steps:
23+
-name:"Checkout code"
24+
uses:actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab# v3.5.2
25+
with:
26+
persist-credentials:false
27+
28+
-name:"Run analysis"
29+
uses:ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af# v2.1.3
30+
with:
31+
results_file:results.sarif
32+
results_format:sarif
33+
publish_results:true
34+
35+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
36+
# format to the repository Actions tab.
37+
-name:"Upload artifact"
38+
uses:actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce# v3.1.2
39+
with:
40+
name:SARIF file
41+
path:results.sarif
42+
retention-days:5
43+
44+
# required for Code scanning alerts
45+
-name:"Upload SARIF results to code scanning"
46+
uses:github/codeql-action/upload-sarif@83f0fe6c4988d98a455712a27f0255212bba9bd4# v2.3.6
47+
with:
48+
sarif_file:results.sarif

‎readme.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<a href="https://github.com/anuraghazra/github-readme-stats/pulls">
2020
<img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" />
2121
</a>
22+
<a href="https://securityscorecards.dev/viewer/?uri=github.com/anuraghazra/github-readme-stats">
23+
<img alt="OpenSSF Scorecard" src="https://api.securityscorecards.dev/projects/github.com/anuraghazra/github-readme-stats/badge" />
24+
</a>
2225
<br />
2326
<br />
2427
<a href="https://a.paddle.com/v2/click/16413/119403?link=1227">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp