Skip to content

codex-preview: Remove always-true step condition - #221

Open
reakaleek wants to merge 1 commit into
mainfrom
audit/codex-preview-dead-if
Open

codex-preview: Remove always-true step condition#221
reakaleek wants to merge 1 commit into
mainfrom
audit/codex-preview-dead-if

Conversation

@reakaleek

Copy link
Copy Markdown
Member

What

Delete the step-level event check on the Create Deployment step in codex-preview.yml.

Why

Repo-wide over-engineering audit. The deploy job's if already restricts the run to pull_request / pull_request_target, so the step condition was always true — and its workflow_dispatch arm was unreachable.

How

Removed the redundant if line.

Test plan

actionlint passes (pre-commit). Behavior is unchanged: the step runs exactly when the job runs.

🤖 Generated with Claude Code

The deploy job's if already restricts the run to pull_request and
pull_request_target events, so the step-level event check on Create
Deployment was always true (and its workflow_dispatch arm unreachable).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@reakaleek
reakaleek requested a review from a team as a code owner July 14, 2026 08:47
@reakaleek
reakaleek requested a review from cotti July 14, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants