Skip to content

fix: run project auto-assign via pull_request_target#615

Merged
BenJule merged 1 commit into
developfrom
fix/project-automation-dependabot
Jul 13, 2026
Merged

fix: run project auto-assign via pull_request_target#615
BenJule merged 1 commit into
developfrom
fix/project-automation-dependabot

Conversation

@BenJule

@BenJule BenJule commented Jul 13, 2026

Copy link
Copy Markdown
Owner

The "Automation: Auto-assign to Project" workflow failed on every Dependabot PR (#611, #612, #613) because pull_request workflows triggered by Dependabot only receive Dependabot secrets — secrets.PROJECT_TOKEN was empty and the add-to-project step errored.

Switching the trigger to pull_request_target runs the job in base-repo context where repository secrets are available. This is safe for this workflow: it never checks out or executes PR code, it only touches PR metadata (project board, assignee, milestone).

Closes #614

Dependabot-opened PRs run pull_request workflows without repository
secrets, so PROJECT_TOKEN was empty and add-to-project failed on every
Dependabot PR. pull_request_target runs in base-repo context with
secrets; safe here since the workflow never checks out PR code.

Closes #614
@BenJule BenJule added this to the v02.07.01-dev milestone Jul 13, 2026
@BenJule BenJule self-assigned this Jul 13, 2026
@BenJule BenJule requested a review from Copilot July 13, 2026 20:10
@github-actions github-actions Bot added the area: ci GitHub Actions, CI/CD label Jul 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@s3-review s3-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found nothing to flag.

@BenJule BenJule merged commit 3709b12 into develop Jul 13, 2026
8 of 9 checks passed
@BenJule BenJule deleted the fix/project-automation-dependabot branch July 13, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci GitHub Actions, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants