Skip to content

Grant TagBot and Dependabot Auto-merge the token permissions they request - #162

Merged
jClugstor merged 1 commit into
SciML:mainfrom
SebastianM-C:ci/tagbot-automerge-permissions
Sep 24, 2026
Merged

jClugstor merged 1 commit into
SciML:mainfrom
SebastianM-C:ci/tagbot-automerge-permissions

Conversation

@SebastianM-C

Copy link
Copy Markdown
Member

This repo's default GITHUB_TOKEN is read-only, so both reusable workflows
(SciML/.github/.github/workflows/tagbot.yml, dependabot-automerge.yml) end in
startup_failure: they request scopes the caller job doesn't grant. Documentation.yml
already carries this fix.

  • TagBot.yml: had no permissions: block — added one matching everything tagbot.yml
    requests (contents: write plus the 11 read scopes it declares).
  • DependabotAutoMerge.yml: had a partial block (contents, pull-requests write) —
    added the two read scopes (checks, statuses) dependabot-automerge.yml also
    requests, which the existing explicit block was silently downgrading to none.

Tested: actionlint clean on both files.

Registered versions with no corresponding tag: v1.9.1, v1.9.2, v1.9.3, v1.10.0 —
should self-tag once this merges and TagBot next runs.

🤖 Generated with Claude Code · model: claude-sonnet-5
Review: unreviewed

…uest

This repo's default GITHUB_TOKEN is read-only, so both reusable workflows
(SciML/.github/.github/workflows/tagbot.yml, dependabot-automerge.yml) fail
at startup: they request scopes the caller doesn't grant. Add a job-level
permissions block on TagBot matching what tagbot.yml requests in full, and
extend Dependabot Auto-merge's existing block with the two read scopes
(checks, statuses) it was missing. Documentation.yml already carries the
equivalent fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jClugstor
jClugstor merged commit 1a2967d into SciML:main Sep 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants