Skip to content

Commit 5d3eb1d

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 eb84710 commit 5d3eb1d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/php-security.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: PHP Security Check
33

4-
on: [push, pull_request]
4+
on:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
9+
# Estate guardrail: scope push to default branches so a PR fires once (not
10+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
514

615
permissions:
716
contents: read

0 commit comments

Comments
 (0)