You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Promote Release" workflow (promote-release.yml) always fails at the "Verify draft GitHub Release exists" step (step 9 in the validate job). The GITHUB_TOKEN used has only contents: read permission, which is insufficient to list draft releases via the GitHub API.
From the GitHub API docs: "Only users with push access will receive listings for draft releases." A token with contents: read does not have push access.
Steps to Reproduce
Trigger the "Promote Release" workflow for any version (e.g., 0.3.3)
Observe step 9 ("Verify draft GitHub Release exists") in the validate job
The step retries 5 times but never finds the draft release
Expected Behavior
The validate job finds the existing draft GitHub Release and proceeds to the downstream verification gate.
Actual Behavior
The step fails with: ERROR: No GitHub Release for tag 0.3.3
Use a token with push-level access for the draft release check. Two options:
Option A (simplest): Change contents: read to contents: write in the validate job permissions.
Option B (least privilege): Generate the RELEASE_APP GitHub App token in the validate job and use it as GH_TOKEN for the "Verify draft GitHub Release exists" step.
Changelog Category
Fixed
Acceptance Criteria
promote-release.ymlvalidate job can see draft releases
Promote Release workflow succeeds end-to-end for 0.3.3
Activity
fix(ci): grant validate job contents:write to see draft releases
fix(ci): grant validate job contents:write to see draft releases (#518)