Skip to content

Commit 9639b58

Browse files
committed
ci: redistribute canonical scorecard.yml (concurrency-cancel guard) (Refs hyperpolymath/standards#122)
1 parent cd48b0b commit 9639b58

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# SPDX-License-Identifier: PMPL-1.0-or-later
1+
# SPDX-License-Identifier: PMPL-1.0
22
name: OSSF Scorecard
33
on:
44
push:
55
branches: [main, master]
66
schedule:
7-
- cron: '0 4 * * 0'
7+
- cron: '0 4 * * *'
8+
workflow_dispatch:
9+
10+
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
11+
# updates do not pile up queued runs against the shared account-wide
12+
# Actions concurrency pool. Applied only to read-only check workflows
13+
# (no publish/mutation), so cancelling a superseded run is always safe.
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
817

918
permissions:
1019
contents: read
@@ -16,21 +25,17 @@ jobs:
1625
security-events: write
1726
id-token: write
1827
steps:
19-
<<<<<<< HEAD
20-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
21-
=======
22-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23-
>>>>>>> 2928af7 (chore: batch RSR compliance)
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2429
with:
2530
persist-credentials: false
26-
31+
2732
- name: Run Scorecard
28-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
33+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.3.1
2934
with:
3035
results_file: results.sarif
3136
results_format: sarif
32-
37+
3338
- name: Upload results
34-
uses: github/codeql-action/upload-sarif@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3
39+
uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.31.8
3540
with:
3641
sarif_file: results.sarif

0 commit comments

Comments
 (0)