Skip to content

Commit dd3a216

Browse files
authored
Modify Scorecard workflow for additional branch support
Updated the Scorecard workflow to include a new branch and removed conditional execution for analysis.
1 parent 50dfd1f commit dd3a216

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Scorecard supply-chain security
2+
on:
3+
schedule:
4+
- cron: '36 5 * * 0'
5+
push:
6+
# Added your research branch so it actually runs!
7+
branches: [ "main", "DSSRF_Branch_Rule" ]
8+
9+
permissions: read-all
10+
11+
jobs:
12+
analysis:
13+
name: Scorecard analysis
14+
runs-on: ubuntu-latest
15+
# Removed the 'if' condition so it runs on your current branch
16+
permissions:
17+
security-events: write
18+
id-token: write
19+
contents: read
20+
actions: read
21+
22+
steps:
23+
- name: "Checkout code"
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
25+
with:
26+
persist-credentials: false
27+
28+
- name: "Run analysis"
29+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
# This uses OIDC, NO API KEY REQUIRED for public repos
34+
publish_results: true
35+
36+
- name: "Upload artifact"
37+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1
38+
with:
39+
name: SARIF file
40+
path: results.sarif
41+
retention-days: 5
42+
43+
- name: "Upload to code-scanning"
44+
uses: github/codeql-action/upload-sarif@7434149006143a4d75b82a2f411ef15b03ccc2d7
45+
with:
46+
sarif_file: results.sarif

0 commit comments

Comments
 (0)