Skip to content

Commit a42a080

Browse files
authored
Create scorecards.yml (#1041)
* Create scorecards.yml Signed-off-by: laurentsimon <[email protected]> * Update scorecards.yml Signed-off-by: laurentsimon <[email protected]> * Update scorecards.yml Signed-off-by: laurentsimon <[email protected]> Signed-off-by: laurentsimon <[email protected]>
1 parent cf93e24 commit a42a080

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

‎.github/workflows/scorecards.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Scorecards supply-chain security
2+
on:
3+
workflow_dispatch:
4+
5+
# Declare default permissions as read only.
6+
permissions: read-all
7+
8+
jobs:
9+
analysis:
10+
name: Scorecards analysis
11+
runs-on: ubuntu-latest
12+
permissions:
13+
# Needed to upload the results to code-scanning dashboard.
14+
security-events: write
15+
id-token: write
16+
17+
steps:
18+
- name: "Checkout code"
19+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
20+
with:
21+
persist-credentials: false
22+
23+
# This is a pre-submit / pre-release.
24+
- name: "Run analysis"
25+
uses: ossf/scorecard-action@main
26+
with:
27+
results_file: results.sarif
28+
results_format: sarif
29+
publish_results: true
30+
31+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
32+
# format to the repository Actions tab.
33+
- name: "Upload artifact"
34+
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
35+
with:
36+
name: SARIF file
37+
path: results.sarif
38+
retention-days: 5
39+
40+
# Upload the results to GitHub's code scanning dashboard.
41+
- name: "Upload to code-scanning"
42+
uses: github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27
43+
with:
44+
sarif_file: results.sarif

0 commit comments

Comments
 (0)