-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (50 loc) · 1.52 KB
/
reusable.scorecard.yml
File metadata and controls
57 lines (50 loc) · 1.52 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
48
49
50
51
52
53
54
55
56
57
name: Scorecard
on:
workflow_call:
permissions:
contents: read
jobs:
# Scorecard
scorecard:
name: Scorecard
runs-on: ubuntu-latest
permissions:
# read
actions: read
checks: read
contents: read
issues: read
pull-requests: read
# write
id-token: write
security-events: write
steps:
# Harden Runner
- name: Harden Runner # Audit all outbound calls
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
# Checkout
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
# Analyze OSSF Scorecard
- name: Analyze OSSF Scorecard
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: ossf_scorecard.sarif
results_format: sarif
publish_results: true
# Upload to GitHub Actions Artifact
- name: Upload to GitHub Actions Artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: OSSF Scorecard
path: ossf_scorecard.sarif
overwrite: true
# Upload to GitHub Code Scanning
- name: Upload to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
with:
sarif_file: ossf_scorecard.sarif