Skip to content

Harden deploy workflow_run trust checks#3276

Open
phillco wants to merge 1 commit into
mainfrom
codex/fix-privileged-deploy-workflow-vulnerability
Open

Harden deploy workflow_run trust checks#3276
phillco wants to merge 1 commit into
mainfrom
codex/fix-privileged-deploy-workflow-vulnerability

Conversation

@phillco
Copy link
Copy Markdown
Member

@phillco phillco commented May 20, 2026

Motivation

  • Prevent privileged Deploy jobs from running on workflow_run events originating from untrusted sources by ensuring the upstream run was a push from the same repository before checking out workflow_run.head_sha.

Description

  • Updated .github/workflows/deploy.yml to add if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_repository.full_name == github.repository }} to the publish-vscode-extension, publish-neovim-extension, and push-cursorless-talon jobs while preserving checkout pinning to workflow_run.head_sha.

Testing

  • Ran pnpm run lint which completed successfully.

Codex Task

@phillco phillco requested a review from a team as a code owner May 20, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant