forked from ChelseaKR/nearmiss
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 2.46 KB
/
Copy pathscorecard.yml
File metadata and controls
63 lines (55 loc) · 2.46 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
58
59
60
61
62
63
# SPDX-License-Identifier: Apache-2.0
# OpenSSF Scorecard — a weekly, third-party-verifiable check of this repo's own supply-chain
# posture (branch protection, token permissions, dangerous-workflow patterns, pinned dependencies,
# signed releases, etc.), published to https://scorecard.dev so the score is independently checkable
# rather than self-asserted. Added in the 2026-07-05 remediation pass
# (SEC-36, SEC-37, CICD-03, CICD-11, CICD-21).
#
# NOTE: this workflow only takes effect once committed and pushed to GitHub, where the schedule
# and push triggers actually run it — see the remediation log for the exact manual step (wiring the
# resulting "Scorecard analysis" check as a required status check via a branch ruleset) that a
# human maintainer, not this file, must still do.
name: Scorecard analysis workflow
on:
push:
branches: [main]
schedule:
# Weekly, Saturdays — matches the OSSF-recommended cadence (SEC-38's monthly-report control is
# satisfied a fortiori by a weekly run).
- cron: "30 1 * * 6"
permissions:
contents: read
concurrency:
group: scorecard-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-24.04
permissions:
contents: read # Check out and analyze this public repository.
security-events: write # Upload the generated SARIF to code scanning.
id-token: write # Publish authenticated results with short-lived GitHub OIDC.
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run analysis
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
# Publishes to the public, independently-queryable scorecard.dev API/badge — the point of
# running Scorecard at all is a third-party-checkable number, not a private one.
publish_results: true
- name: Upload SARIF as a workflow artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to code scanning
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
sarif_file: results.sarif