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
{{ message }}
Repository navigation
Commit 9d818bd
Browse filesBrowse the repository at this point in the historyBrowse files
ci(spec-pin-bump): open the bump PR with DISPATCH_TOKEN; fail visibly without it (#192)
The first scheduled run (2026-10-19, run 39266451346) died pushing
ci/spec-pin-bump: the bump rewrites .github/workflows/ci.yml, and GitHub
refuses any GITHUB_TOKEN push that changes a workflow file ("refusing to
allow a GitHub App to create or update workflow ... without `workflows`
permission"). Even past that, "Allow GitHub Actions to create and approve
pull requests" is off for this repository, so GITHUB_TOKEN could not open
the PR either. No `permissions:` entry fixes either one.
- create-pull-request now uses secrets.DISPATCH_TOKEN, the estate's PAT
convention (yantra4d's bump-commons-pin.yml uses the same secret).
- A guard step before it fails with a run summary (old/new pin and the
manifest-lane result) when DISPATCH_TOKEN is not provisioned, instead of
dying inside the push.
- An explain step names the permissions the token needs if it is refused.
- The PR body no longer says the pull_request lanes do not run (a PAT-opened
PR does trigger them); the sweep dispatch stays on github.token.
- Header comment and README say what the token needs and why.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
echo "### SPEC_PIN bump could not open a PR: DISPATCH_TOKEN is not provisioned"
122
+
echo
123
+
echo "Keystone main moved: \`$OLD\` -> \`$NEW\` (hyperobjects-spec $VERSION)."
124
+
echo
125
+
echo "- manifest lane at the new pin: \`$MANIFESTS\`"
126
+
echo "- \`pytest .github/scripts\`: \`$SCRIPTS\`"
127
+
echo
128
+
echo "The bump rewrites \`.github/workflows/ci.yml\`, and GitHub refuses a push"
129
+
echo "from \`GITHUB_TOKEN\` that changes a workflow file. Provision"
130
+
echo "\`DISPATCH_TOKEN\` (org level recommended) with Contents, Pull requests and"
131
+
echo "Workflows read/write on this repository. Until then, run"
132
+
echo "\`python3 .github/scripts/spec_pin_bump.py --to $NEW\` locally and open the"
133
+
echo "PR by hand."
134
+
} >> "$GITHUB_STEP_SUMMARY"
135
+
echo "::error title=DISPATCH_TOKEN not provisioned::keystone main is $NEW but the bump PR cannot be opened: github.token may not push .github/workflows/ci.yml. See the run summary."
Moves `SPEC_PIN` from `${{ steps.pin.outputs.old }}` to keystone main `${{ steps.pin.outputs.new }}` (hyperobjects-spec ${{ steps.lane.outputs.version }}), in `ci.yml` and the entry docs.
115
161
116
-
**At the new pin, in the bump job** (this PR was opened with `GITHUB_TOKEN`, so the `pull_request` lanes of `ci.yml` do not run on it by themselves):
162
+
**At the new pin, in the bump job** (`ci.yml`'s `pull_request` lanes run on this PR too):
0 commit comments