ci: require workflow timeouts and permissions - #30
Merged
AlexStocks merged 4 commits intoAug 29, 2026
Conversation
…nto codex/wp0-workflow-hardening # Conflicts: # AGENTS.md # tools/governance-check/main_test.go
…nto codex/wp0-workflow-hardening
AlexStocks
merged commit Aug 29, 2026
9ac2f57
into
codex/wp0-governance-contract
47 of 48 checks passed
8 tasks
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
contents: readpermission to the license checkusesreference and only GitHub-supported caller-job keywordsRationale
WP0-B in #3 requires explicit job bounds and least-privilege permissions. Reusable-workflow caller jobs are intentionally excluded from the timeout rule because GitHub Actions does not allow
timeout-minuteson jobs that use a reusable workflow; their called workflows define the executable job bounds.The caller exception now rejects blank references,
timeout-minutes, and ordinary-only fields such asruns-onorsteps, so adding auseskey cannot bypass the ordinary-job timeout contract.This PR is stacked on #29 (
codex/wp0-governance-contract).Behavior, API, and compatibility
Validation
1acb4a38248ae74c9dad6bf3625d4618bd27e844and pass after the fixgo test ./tools/governance-check -count=1go test -race ./tools/governance-check -count=1go vet ./tools/governance-checkmake governance-checkgo run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12go mod tidy -diff,go mod verify, and golangci format verification passed764ac0426cd568c789f8d7bd7cf669c2efe4b371; the combined Issue Form and workflow governance tests passgit diff --checkExact head validated:
a6dfab415b236e2b2fb6c1a2615837a338dca493.AI usage
Implemented with Codex assistance. The exact submitted workflow and validator changes were self-reviewed and checked with the commands above.