-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.35 KB
/
Copy pathscorecard.yml
File metadata and controls
47 lines (40 loc) · 1.35 KB
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
44
45
46
47
name: OSSF Scorecard
on:
branch_protection_rule:
schedule:
# Weekly: Saturday 01:30 UTC.
- cron: "30 1 * * 6"
push:
branches: [main]
permissions: read-all
jobs:
analysis:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
# Required to upload SARIF results to the Security tab.
security-events: write
# Required for OIDC token used by publish_results.
id-token: write
# Optional read perms used by various Scorecard checks.
contents: read
actions: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
# Publishes results so the badge auto-generates and the score is
# discoverable at https://scorecard.dev/viewer/?uri=github.com/<owner>/<repo>
publish_results: true
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: SARIF
path: results.sarif
retention-days: 5
- uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
with:
sarif_file: results.sarif