ci: harden workflows with concurrency, timeouts, and pinned actions - #22
Merged
Conversation
- Cancel superseded PR runs via concurrency groups (post-merge runs on main/6.x still complete) - Add timeout-minutes to all jobs - Replace manual composer caching with ramsey/composer-install - Pin all actions to commit SHAs with version comments - Run PHPStan on PHP 8.3 (lowest supported) instead of 8.4
pataar
enabled auto-merge (squash)
June 19, 2026 12:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hardens both GitHub Actions workflows (
tests.yml,static-analysis.yml) for supply-chain safety and CI efficiency.cancel-in-progressgated topull_requestevents, so post-merge runs onmain/6.xstill complete). Key useshead_ref || refso a PR'spush+pull_requestevents share one group.timeout-minutes: 15on every job to backstop hung runs.ramsey/composer-install. Tests keep thecomposer require ... --no-updatestep and usedependency-versions: highestfor the Laravel matrix;custom-cache-suffixisolates caches per matrix entry.# versioncomments. Dependabot maintains these going forward (no config change needed).Pinned actions
actions/checkout9f698171shivammathur/setup-phpf3e473d1ramsey/composer-installa8d0d959coverallsapp/github-action5cbfd81bTest plan
Note
6.xstill appears in thepushtriggers — flagging in case that branch is stale and the reference should be dropped.