Skip to content

Fix 403 error: Configure github-token for Dependabot alerts access#14220

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/debug-add-dependabot
Closed

Fix 403 error: Configure github-token for Dependabot alerts access#14220
Copilot wants to merge 3 commits into
mainfrom
copilot/debug-add-dependabot

Conversation

Copilot AI commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

The Dependabot Project Manager workflow was failing with 403 Forbidden when querying Dependabot alerts through the GitHub MCP server. The default GITHUB_TOKEN lacks security_events:read permission in the github org.

Changes

  • Configure GitHub MCP server to use GH_AW_PROJECT_GITHUB_TOKEN which has both Projects and security_events permissions
  • Add github-token field to GitHub tool configuration in workflow frontmatter
tools:
  github:
    toolsets:
      - default
      - dependabot
      - projects
    github-token: ${{ secrets.GH_AW_PROJECT_GITHUB_TOKEN }}

This routes all GitHub API calls through the elevated token, enabling access to /repos/{owner}/{repo}/dependabot/alerts endpoint.

Original prompt

Debug and edit to add dependabot. See 403 in run: https://github.com/github/gh-aw/actions/runs/21764337169

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 6, 2026 20:32
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug and edit to add dependabot configuration Fix 403 error: Configure github-token for Dependabot alerts access Feb 6, 2026
Copilot AI requested a review from mnkiefer February 6, 2026 20:37
@mnkiefer mnkiefer closed this Feb 6, 2026
@github-actions github-actions Bot deleted the copilot/debug-add-dependabot branch April 2, 2026 12:10
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