Repository navigation
ci: validate changed GitHub workflows in the basic PR tier (#5743) - #6804
Merged
Merged
Conversation
developing-today
Bot
requested review from
a team and
dezren39
as code owners
November 7, 2026 05:18
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
5 tasks
Contributor
Author
|
Merging per standing merge authority (lane code-d, fallback mode):
|
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.
Fixes #5743.
Problem
.github/ci-policy.mdclassifies.github/workflows/**as class 3, but actionlint was wired only intomcpx.ymlformcpx*.yml(#1996) — a workflow-only PR (#5734) got no pull_request CI run at all, and the four composite actions under.github/actions/**had no validator either.Change
.github/workflows/workflow-lint.yml— new basic-tier workflow (jobbasic: workflow lint) onpull_requestpaths.github/workflows/**+.github/actions/**(+ the validator scripts),merge_group, andworkflow_dispatch. Installs pinned actionlint 1.7.7 with sha256 verification; pure bash + one static binary, seconds-long..github/scripts/check-workflows.sh— actionlint over the complete workflow set (shellcheck overrun:blocks at-S warningwhen available, matching the mcpx leg), plus dedicated shape validation for.github/actions/*/action.yml: actionlint parses every file it is given as a workflow, so action metadata is validated against the metadata schema instead (name/description,runs.usingruntime, composite steps; PyYAML parse when importable, structural fallback otherwise — both paths contract-tested)..github/scripts/check-workflows.test.sh— contract tests: valid workflow passes; broken${{ }}expression fails; unknown input toactions/checkoutfails; valid composite action passes; action metadata with norunsor withruns.using: bananafails..github/ci-policy.md— new section + tier-table row documenting the check name and triggers..github/workflows/bws-freshness.yml— the whole-set lint surfaced one pre-existing finding (SC2034): the close-drift-issue step assignedtitle=and never used it (a copy of the create step, which does use it). Removed the dead assignment so the new gate is green on the current tree.Verification
check-workflows.shover the full set — 52 workflows + 4 action metadata files — OK; before the bws fix it failed with exactly that one SC2034.check-workflows.test.sh: all contract tests pass on both metadata-validation paths.-S warning..github/workflows/**, sobasic: workflow lintfires on it.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.