GitNexus/.github/workflows
Gergő Magyar 5d670a530d
ci(release): skip rc build on release PRs (#1474)
* ci(release): skip rc build on release PRs

Suppress the auto-fired Release Candidate workflow when:
  1. The HEAD commit subject matches `chore: release vX.Y.Z` (the canonical
     release-PR title), or
  2. The squash-merged PR carries the `release` label.

Either match short-circuits the guard to should_run=false. This prevents the
rc cycle from racing publish.yml on the v-tag (as happened on v1.6.4 where
we had to manually cancel the auto-fired RC run after merging PR #1473).

Adds pull-requests: read to the guard job for the label lookup. A failed
gh API call falls through to the existing dedup logic rather than silently
suppressing rc builds.

* ci(release): address PR #1474 review — anchor regex + sanitise log echo

Two minor follow-ups from Claude's review:

1. End-anchor the release-subject regex. The previous shape
   ^chore: release vX.Y.Z would match noisy variants like
   chore: release v1.0.0 (something unrelated). The new shape
   requires either the bare title or the canonical squash-merge
   (#NNNN) suffix exactly.

2. Sanitise HEAD_SUBJECT before echoing to logs. git %s strips
   newlines so LF injection is impossible, but a hypothetical
   subject containing ::error:: or ::set-output:: could otherwise
   forge GitHub Actions annotation entries. Defence-in-depth.

Both findings flagged minor / does not block merge — applying
anyway since they are trivial.
2026-05-10 09:50:58 +01:00
..
ci-e2e.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
ci-quality.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
ci-report.yml ci: add fork-safe PR autofix pipeline (#1446) 2026-05-09 13:35:04 +01:00
ci-scope-parity.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
ci-tests.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
ci.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
claude.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
codeql.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
dependency-review.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
docker.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
gitleaks.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
pr-autofix-apply.yml chore(deps): bump actions/checkout from 5.0.0 to 6.0.2 (#1459) 2026-05-09 19:26:53 +01:00
pr-autofix-publish.yml feat(autofix): replace inline reviewdog with /autofix ChatOps button (#1458) 2026-05-09 16:32:38 +01:00
pr-autofix.yml fix(security): Pin Docker Node base images, remove runtime package-manager CVE surface, verify Trivy on PRs, and harden Dependabot policy (#1455) 2026-05-09 16:55:31 +01:00
pr-description-check.yml chore(deps): bump actions/github-script from 7.0.1 to 9.0.0 2026-04-15 20:17:08 +00:00
pr-labeler.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
publish.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
release-candidate.yml ci(release): skip rc build on release PRs (#1474) 2026-05-10 09:50:58 +01:00
scorecard.yml chore(deps): bump github/codeql-action from 3.35.3 to 4.35.3 (#1390) 2026-05-07 09:54:17 +01:00
tree-sitter-upgrade-readiness.yml chore(deps): tree-sitter 0.25 upgrade readiness monitor with daily Dependabot (#847) 2026-04-16 09:17:21 +01:00
triage-sweep.yml chore(deps): bump actions/cache from 5.0.4 to 5.0.5 (#840) 2026-04-15 13:36:38 +01:00
trivy.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00
workflow-lint.yml fix(security): Harden CI permissions (#1454) 2026-05-09 17:58:22 +01:00