Skip to content

Commit 9ab2da8

Browse files
author
bootc-dev Bot
committed
Sync common files from infra repository
Synchronized from bootc-dev/infra@ff854d9. Signed-off-by: bootc-dev Bot <bot@bootc.dev>
1 parent 0e91d32 commit 9ab2da8

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

.bootc-dev-infra-commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ac9dac019eeafc3a1791bd564cbd8d1455f2a6e9
1+
ff854d96d4571c235be2879a375263a672fc14a5
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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@v4
24+
with:
25+
persist-credentials: false
26+
27+
- name: "Run analysis"
28+
uses: ossf/scorecard-action@v2.4.3
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@v4
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
50+

0 commit comments

Comments
 (0)