Skip to content

ci(project): add pull requests on pull_request, which public repositories still start - #162

Merged
MathiasVDA merged 1 commit into
mainfrom
claude/project-thread-52jebc
Dec 3, 2026
Merged

MathiasVDA merged 1 commit into
mainfrom
claude/project-thread-52jebc

Conversation

@MathiasVDA

Copy link
Copy Markdown
Contributor

Requested by Mathias · project thread

What

The Project workflow (adds new issues and pull requests to the org board) now triggers on pull_request instead of pull_request_target.

Why

Since 2026-12-02 ~22:40 UTC every pull_request_target run of this workflow ends in Startup failure with this annotation:

GitHub restricts pull_request_target on public repositories by default. To allow the event trigger, configure an Actions policy.

Each one sends a "Project: No jobs were run" email. Private repositories (enterprise, website, demo) are not affected; the public ones (tripletrail, tripletrail-bench) are. Issue events still succeed.

pull_request from a branch in this repository gets PROJECT_TOKEN, so every PR the team opens is still added. A PR from a fork (or one Dependabot opens) gets no secret: the job passes without adding it, as before for a missing secret. Such a PR can be added on the board or with a manual run. The alternative, an Actions policy that re-allows pull_request_target, is a settings change and widens what fork PRs can reach, so this PR avoids it.

No issue: CI chore (label no-issue).


Generated by Claude Code

…ries still start

GitHub now refuses pull_request_target runs on public repositories by
default, so every pull request got a Project run with a startup failure
and a "No jobs were run" email.
@MathiasVDA MathiasVDA added the no-issue Pull request with no issue to close (chores, releases, QA tests) label Dec 3, 2026 — with Claude
@MathiasVDA MathiasVDA self-assigned this Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Review (Reviewer 2): approved at 964a5d5.

The job checks out nothing and reads only the event's own node id and number, so moving to pull_request adds no way for a pull request's content to reach the token; a fork or Dependabot PR gets no secret and the job passes with its notice. The add job ran and passed on this PR itself, so the new trigger starts. Agreed that this is better than re-allowing pull_request_target in the Actions policy.


Generated by Claude Code

@MathiasVDA MathiasVDA added the review:approved Reviewer approved label Dec 3, 2026 — with Claude
@MathiasVDA
MathiasVDA merged commit 08cb99b into main Dec 3, 2026
10 checks passed
@MathiasVDA
MathiasVDA deleted the claude/project-thread-52jebc branch December 3, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-issue Pull request with no issue to close (chores, releases, QA tests) review:approved Reviewer approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant