Skip to content

Disable PR labeling and limit pull_request_target to CLA - #12271

Merged
manzt merged 3 commits into
mainfrom
ci/pr-workflow-events
Dec 3, 2026
Merged

manzt merged 3 commits into
mainfrom
ci/pr-workflow-events

Conversation

@manzt

@manzt manzt commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

GitHub recently started blocking pull_request_target by default, which is why these checks are failing. This moves PR validation to pull_request, disables the auto-labeler for now, and proposes an exception only for CLA Assistant. GitHub announcement

Longer term, I think we should disable pull_request_target and workflow_run across the org and use a GitHub App when something needs to write to a PR. See open source security at Astral for more details.

Copilot AI balanced review requested due to automatic review settings December 3, 2026 20:34
@manzt manzt added the internal A refactor or improvement that is not user facing label Dec 3, 2026
@manzt manzt changed the title Limit pull_request_target to PR labeling and CLA checks Limit pull_request_target to PR labeling and CLA checks Dec 3, 2026
@manzt
manzt requested a review from mscolnick December 3, 2026 20:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The privileged-workflow exception depends on live repository and organization Actions policies that require maintainer verification to confirm validity, activation, and scope limited to labeler.yml and cla.yml.

No open issues 🎉

What changed in this PR

Moves PR validation to pull_request and proposes a targeted event-policy exception for labeling and CLA checks.

Changes:

  • Switches PR validation from pull_request_target to pull_request.
  • Adds a policy allowing pull_request_target and issue_comment for the labeler and CLA workflows.
File Description
.github/​workflows/​enforce-label.yml Changes the validation trigger while preserving event types.
.github/​actions-policies/​pr-metadata.json Defines the event policy scoped to labeling and CLA workflows.

Review effort: Balanced

@manzt manzt changed the title Limit pull_request_target to PR labeling and CLA checks Disable automatic PR labeling and limit pull_request_target to CLA Dec 3, 2026
@manzt manzt changed the title Disable automatic PR labeling and limit pull_request_target to CLA Disable PR labeling and limit pull_request_target to CLA Dec 3, 2026
@manzt
manzt merged commit bfb326d into main Dec 3, 2026
34 checks passed
@manzt
manzt deleted the ci/pr-workflow-events branch December 3, 2026 20:50
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.26.1-dev128

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

Labels

internal A refactor or improvement that is not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants