Skip to content

Commit c89a484

Browse files
committed
openssf: Move openssf-scorecard.yml into .github/workflows
Workflow link does not work, use file instead See: https://github.com/bootc-dev/infra/actions/runs/19864862091 Signed-off-by: Xiaofeng Wang <[email protected]>
1 parent 10decad commit c89a484

File tree

2 files changed

+49
-51
lines changed

2 files changed

+49
-51
lines changed

.github/workflows/openssf-scorecard.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Upstream https://github.com/ossf/scorecard/blob/main/.github/workflows/scorecard-analysis.yml
2+
# Tweaked to not pin actions by SHA digest as I think that's overkill noisy security theater.
3+
name: OpenSSF Scorecard analysis
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions: read-all
10+
11+
jobs:
12+
analysis:
13+
name: Scorecard analysis
14+
runs-on: ubuntu-24.04
15+
permissions:
16+
# Needed for Code scanning upload
17+
security-events: write
18+
# Needed for GitHub OIDC token if publish_results is true
19+
id-token: write
20+
21+
steps:
22+
- name: "Checkout code"
23+
uses: actions/checkout@v6
24+
with:
25+
persist-credentials: false
26+
27+
- name: "Run analysis"
28+
uses: ossf/[email protected]
29+
with:
30+
results_file: results.sarif
31+
results_format: sarif
32+
# Scorecard team runs a weekly scan of public GitHub repos,
33+
# see https://github.com/ossf/scorecard#public-data.
34+
# Setting `publish_results: true` helps us scale by leveraging your workflow to
35+
# extract the results instead of relying on our own infrastructure to run scans.
36+
# And it's free for you!
37+
publish_results: true
38+
39+
- name: "Upload artifact"
40+
uses: actions/upload-artifact@v5
41+
with:
42+
name: SARIF file
43+
path: results.sarif
44+
retention-days: 5
45+
46+
- name: "Upload to code-scanning"
47+
uses: github/codeql-action/upload-sarif@v4
48+
with:
49+
sarif_file: results.sarif

common/.github/workflows/openssf-scorecard.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)