Skip to content

Auto-assign-to-project workflow fails on Dependabot PRs (PROJECT_TOKEN unavailable) #614

Description

@BenJule

The "Automation: Auto-assign to Project" workflow fails on every Dependabot PR (#611, #612, #613): the add-to-project step uses secrets.PROJECT_TOKEN, but workflows triggered by Dependabot via pull_request only receive Dependabot secrets, so the token is empty and the step errors out.

Fix: trigger on pull_request_target instead of pull_request. The workflow only touches PR metadata (project board, assignee, milestone) and never checks out PR code, so running in the base-repo context is safe, and Dependabot PRs get board/assignee/milestone handling again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions