Skip to content

fix: add required permissions to dependabot-repair.yml to resolve startup_failure#29029

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/fix-workflow-issues
Closed

fix: add required permissions to dependabot-repair.yml to resolve startup_failure#29029
Copilot wants to merge 2 commits intomainfrom
copilot/fix-workflow-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 29, 2026

dependabot-repair.yml was failing with startup_failure on every PR because the calling workflow had no permissions block, but the referenced external reusable workflow (githubnext/dependabot-campaign/dependabot-repair-reusable.lock.yml) contains jobs requesting write permissions. GitHub validates permission bounds at startup — before any if: conditions are evaluated — and fails the workflow if nested jobs exceed caller grants.

Changes

  • .github/workflows/dependabot-repair.yml — added permissions block to the dependabot-repair job (placed before uses: per GitHub convention) covering the max permissions required by any job in the reusable workflow:
jobs:
  dependabot-repair:
    if: github.actor == 'dependabot[bot]'
    permissions:
      actions: read
      contents: write
      discussions: write
      issues: write
      pull-requests: write
    uses: githubnext/dependabot-campaign/...
    secrets: inherit

Same root cause and fix pattern as PR #18629 (smoke-trigger.yml).

Copilot AI and others added 2 commits April 28, 2026 22:26
…rtup_failure

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/1ebec5d9-40fe-492c-becc-3e4f674d2cbe

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
… convention

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/1ebec5d9-40fe-492c-becc-3e4f674d2cbe

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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