From 2ea0ea297f827907d09fa509b8b6fd1264095e5a Mon Sep 17 00:00:00 2001 From: t Date: Wed, 4 Nov 2026 22:48:36 +0000 Subject: [PATCH] Restore the caller permissions on Documentation, TagBot and DependabotAutoMerge The reusable workflows declare permissions (documentation.yml: actions, contents, pull-requests and statuses write); with a read-only default token the caller must grant them or the run fails at startup. Documentation and Dependabot Auto-merge have ended in startup_failure on every run since ci/sciml-standard removed these blocks. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c Agent-Review: unreviewed Co-authored-by: Claude Code --- .github/workflows/DependabotAutoMerge.yml | 2 ++ .github/workflows/Documentation.yml | 9 +++++++++ .github/workflows/TagBot.yml | 14 ++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/.github/workflows/DependabotAutoMerge.yml b/.github/workflows/DependabotAutoMerge.yml index e24b444d..2bf7d377 100644 --- a/.github/workflows/DependabotAutoMerge.yml +++ b/.github/workflows/DependabotAutoMerge.yml @@ -3,6 +3,8 @@ on: pull_request permissions: contents: write pull-requests: write + checks: read + statuses: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 030c5a4a..bf557c39 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -7,6 +7,15 @@ on: tags: '*' pull_request: +# The reusable documentation workflow requests these permissions for its +# build job; declare them here so the call starts even when the repo's +# default GITHUB_TOKEN permissions are read-only. +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }} diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index 9ed2d3e3..e55aba35 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -5,5 +5,19 @@ on: workflow_dispatch: jobs: tagbot: + # This repository's default GITHUB_TOKEN is read-only; the reusable workflow needs these to run and to tag. + permissions: + actions: read + checks: read + contents: write + deployments: read + issues: read + discussions: read + packages: read + pages: read + pull-requests: read + repository-projects: read + security-events: read + statuses: read uses: "SciML/.github/.github/workflows/tagbot.yml@v1" secrets: "inherit"