chore: move UPSTREAM_TAG out of build.yml into plain file - #2
Merged
Merged
Conversation
GITHUB_TOKEN cannot push changes to workflow files without the `workflows` permission, causing the daily update-upstream-tag job to fail. Moving UPSTREAM_TAG into a plain UPSTREAM_TAG file (same pattern as package-linux/prepare_source) means the auto-update workflow only touches a plain file — no special permission needed. build.yml reads the tag via `cat UPSTREAM_TAG` after checkout. update_upstream.yml writes to UPSTREAM_TAG instead of build.yml. Signed-off-by: Saubhik Datta <50126327+saubhikdattagithub@users.noreply.github.com>
Signed-off-by: Saubhik Datta <50126327+saubhikdattagithub@users.noreply.github.com>
saubhikdattagithub
force-pushed
the
fix/move-upstream-tag-to-file
branch
from
September 28, 2026 09:22
abab181 to
63de91d
Compare
saubhikdattagithub
marked this pull request as ready for review
September 28, 2026 09:23
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
GITHUB_TOKENcannot push changes to workflow files (.github/workflows/) without theworkflowspermission — causing the dailyupdate-upstream-tagjob to fail with "refusing to allow a GitHub App to create or update workflow withoutworkflowspermission"UPSTREAM_TAGfrom theenv:block inbuild.ymlinto a plainUPSTREAM_TAGfile at the repo root — same pattern used bygardenlinux/package-linux(prepare_source)build.ymlreads the tag viacat UPSTREAM_TAGafter checkoutupdate_upstream.ymlnow writes toUPSTREAM_TAGinstead ofbuild.yml— noworkflowspermission needed