Skip to content

Commit 6fab463

Browse files
hyperpolymathclaude
andcommitted
ci: cut Actions burn — scope push triggers + concurrency-cancel
Workflows fired on bare `[push, pull_request]`, running twice per PR commit (branch push + PR synchronize). Scope push to [main, master] so PRs fire once; add concurrency cancel-in-progress (read-only PR checks). Reduces the Actions minute burn behind the estate spending-limit wall. No SPDX/logic changes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1eebb75 commit 6fab463

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/container-policy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ permissions:
33
contents: read
44

55
name: Container Policy
6-
on: [push, pull_request]
6+
on:
7+
push:
8+
branches: [main, master]
9+
pull_request:
10+
11+
# Estate guardrail: scope push to default branches so a PR fires once (not
12+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
716
jobs:
817
check:
918
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)