Repository navigation
Grant TagBot and Dependabot-automerge callers the token permissions they request - #94
Merged
ChrisRackauckas merged 1 commit intoSep 24, 2026
Conversation
…hey request TagBot had no caller permissions block and DependabotAutoMerge was missing checks:read + statuses:read, so both fail startup validation against this repo's read-only default GITHUB_TOKEN. Grant exactly what the SciML/.github reusable workflows request. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Agent-Harness: opencode Agent-Model: opencode/muse-spark-1.3-contributor-free Agent-Session: local opencode session (no shareable URL)
ChrisRackauckas
marked this pull request as ready for review
September 24, 2026 10:58
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.
Harness: opencode
Model: opencode/muse-spark-1.3-contributor-free
What changed and why
TagBotandDependabot Auto-mergefail startup validation in this repo because the repo's defaultGITHUB_TOKENis read-only (see #93 body for the mechanism: a reusable workflow cannot exceed what its caller grants). This PR grants exactly what theSciML/.githubreusable workflows request — separate from #93 (docs), one concern per PR:TagBot.ymlhad no callerpermissionsblock. Added the 12 scopes declared bySciML/.github/.github/workflows/tagbot.yml@v1(actions/contents/...:contents: write, everything elseread).DependabotAutoMerge.ymlgranted onlycontents: write+pull-requests: write. Added the missingchecks: read+statuses: readthatdependabot-automerge.yml@v1'sautomergejob declares.No package code touched; two workflow files only.
Verification
actionlint .github/workflows/*.yml: clean (exit 0, no findings).typos .github: clean (exit 0).python3 -c "import yaml; ...":TagBotjob permissions match the reusable's 12-scope block; automerge top-level permissions ={contents: write, pull-requests: write, checks: read, statuses: read}.What was not verified
TagBot/Dependabot Auto-mergeruns (note: TagBot only runs on registry-dispatch comments / manual dispatch, so it may not exercise until the next release; automerge only acts ondependabot[bot]PRs).Related
e874bf1). This PR is the follow-up Grant the docs workflow the token permissions it requests #93 explicitly left for separate handling.gh api repos/SciML/.github/contents/...:tagbot.yml@v1top-levelpermissionsblock anddependabot-automerge.yml@v1job-levelpermissionsblock.Risk assessment
actionlint+typosclean; YAML parse check.🤖 Filed by opencode (model: opencode/muse-spark-1.3-contributor-free) running as @ChrisRackauckas-Claude; Chris has not reviewed this.
Independent risk review
GITHUB_TOKENcontents: writeplus 11 read scopes, and addschecks: readandstatuses: readto Dependabot Auto-merge, which already hadcontentsandpull-requestswrite. Both sets exactly match what the reusable workflowsSciML/.github/.github/workflows/tagbot.yml@v1anddependabot-automerge.yml@v1declare, which I checked viagh api. The PR uses no internals of other packages. The worst outcome is that these two workflows keep failing, which they already do.7fc9926, all 12 checks that ran passed: Documentation, Downgrade (Core), Runic, runic-suggestions, SpellCheck, benchmark (1) and (lts), tests Core on julia 1, lts and pre, tests QA (julia 1), and tests/detect.automerge / automergeshows as skipped. That is expected: itsif: github.actor == 'dependabot[bot]'condition is false on this PR, and it means the workflow now passes startup validation. On earlier branches (for exampleci-green/docs-token-permissionson 2026-09-23 andairspeedvelocity-benchmarks) the same workflow ended instartup_failure. On the default branch's latest commite874bf1, SpellCheck, FormatCheck, Downgrade, CI and Documentation all passed. Nothing fails on head, so nothing is pre-existing or new. TagBot still ends instartup_failureonmain: fourissue_commentruns on 2026-09-16 did. This PR can't exercise the TagBot fix until the next registration or a manual dispatch, and the description says so. There are no reviews or inline comments.startup_failureto skipped confirms that part works.can_approve_pull_request_reviewsisfalse. The reusable automerge job runsgh pr review --approveunderset -euo pipefail, so on a real Dependabot PR that step will probably still fail. Getting past startup doesn't make auto-merge work end to end. That needs a separate settings change, which is Chris's call.#93references.🤖 Independent review added by an AI agent — harness: Devin CLI 3000.11.3 · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium (run as
devin -pby the fleet-master session)Conversation: local non-interactive run; output at ~/sandbox/fleet-master/jobs/quick/out-CatalystNetworkAnalysis.jl-94.md on Chris's Mac (no session URL)