Skip to content

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

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

ChrisRackauckas 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; this does the same for TagBot and Dependabot Auto-merge.

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

Tested: actionlint clean on both files.

Registered versions with no corresponding tag (TagBot couldn't run to create them):
v0.3.3, v0.3.4, v0.3.5, v0.3.6, v0.4.0, v0.4.1, v0.4.2, v0.4.3 — should
tag themselves once this merges and TagBot's workflow_dispatch (or the next registry
comment) 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.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ChrisRackauckas
ChrisRackauckas merged commit 619b927 into SciML:main Sep 24, 2026
13 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