Skip to content

Commit 7d21e6c

Browse files
aksOpsclaude
andauthored
ci(scorecard): trigger after release completion, not every main push (#42)
- Adds workflow_run: on release completion → scorecard scans the fresh release artifacts right after they land, so Signed-Releases and Packaging checks see current state. - Adds workflow_dispatch for manual re-scans. - Removes push:branches:[main] — most commits don't change scorecard- visible state; scanning on every merge just burned runner time and published stale reports. - Keeps the weekly Monday schedule as a backstop. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b55cc30 commit 7d21e6c

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
name: scorecard
22

3+
# Triggers:
4+
# - workflow_run on completed 'release' runs → scan fresh release assets
5+
# - weekly schedule (Mondays, 06:00 UTC) → backstop against drift
6+
# - branch_protection_rule changes → re-score when policy moves
7+
# - manual workflow_dispatch → on-demand
8+
# Not on every main push — most commits don't change release/scorecard-visible
9+
# state, so we were burning runner time publishing stale results.
310
on:
11+
workflow_run:
12+
workflows: [release]
13+
types: [completed]
414
branch_protection_rule:
515
schedule:
616
- cron: '0 6 * * 1'
7-
push:
8-
branches: [main]
17+
workflow_dispatch:
918

1019
permissions: read-all
1120

0 commit comments

Comments
 (0)