-
Notifications
You must be signed in to change notification settings - Fork 68
43 lines (37 loc) · 1.05 KB
/
scorecard.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Scorecard
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '30 1 * * 6'
permissions: read-all
jobs:
scorecard:
name: Scorecard Analysis
runs-on: ubuntu-latest
permissions:
id-token: write
security-events: write
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
persist-credentials: false
- name: Run scorecard
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
with:
results_format: sarif
results_file: scorecard.sarif
publish_results: true
- name: Upload sarif
uses: github/codeql-action/upload-sarif@9fdb3e49720b44c48891d036bb502feb25684276 # v3.25.6
with:
sarif_file: scorecard.sarif
- name: Upload artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: scorecard
path: scorecard.sarif
retention-days: 7