forked from ChelseaKR/tods-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.44 KB
/
Copy pathscorecard.yml
File metadata and controls
46 lines (39 loc) · 1.44 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
name: OpenSSF Scorecard
# Supply-chain posture score (CICD-03, SEC-35-38), published to the repo's
# code-scanning tab and, weekly, to the public Scorecard API. Depends on
# real branch-protection/ruleset settings to score well on Branch-Protection
# and Token-Permissions; see docs/CONFORMANCE-GAPS.md#ci-cd for the current
# gap (P1-8, needs live GitHub settings this remediation pass intentionally
# did not touch).
on:
push:
branches: [main]
schedule:
- cron: "24 3 * * 2" # weekly, Tuesday 03:24 UTC
workflow_dispatch:
permissions:
contents: read
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write # upload SARIF to code scanning
id-token: write # publish results to the public Scorecard API
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: scorecard-results
path: results.sarif
retention-days: 5
- uses: github/codeql-action/upload-sarif@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
sarif_file: results.sarif