fix(ci): grant contents:write to build-native reusable workflow call#632
Open
FritzHeider wants to merge 1 commit into
Open
fix(ci): grant contents:write to build-native reusable workflow call#632FritzHeider wants to merge 1 commit into
FritzHeider wants to merge 1 commit into
Conversation
release.yml calls build-native.yml via `uses:` without a permissions block. Its nested commit-binaries job statically declares `permissions: contents: write`, and GitHub validates every declared job's permissions in a called workflow at parse time -- regardless of runtime `if:` conditions -- rejecting the whole run before scheduling any jobs if the caller doesn't grant it. This has made every Release Pipeline run fail with startup_failure (0 jobs, 0 check-runs) since the repo's default Actions token permission was tightened. Co-Authored-By: claude-flow <ruv@ruv.net>
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
release.ymlcallsbuild-native.ymlas a reusable workflow (uses:) without apermissions:block.build-native.yml'scommit-binariesjob statically declarespermissions: contents: write.if:conditions, and rejects the whole run before scheduling any jobs if the caller doesn't grant it.startup_failure(0 jobs, 0 check-runs) since at least 2026-04-20, confirmed via the run page's own annotation:permissions: contents: writeto thebuild-nativejob inrelease.yml.Test plan
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/release.yml'))")publish-all.yml(which does not callbuild-native.ymlreusably) succeeds on the same tag pushes whererelease.ymlfails — isolates the cause to this reusable-workflow callworkflow_dispatch(dry_run) onrelease.ymlpost-merge to confirm it clearsstartup_failure