Skip to content

ci: fix workflow parse error from #484 secret guard (LAC-3035) - #486

Merged
lacymorrow merged 1 commit into
mainfrom
LAC-3035/guard-fix
Jul 23, 2026
Merged

ci: fix workflow parse error from #484 secret guard (LAC-3035)#486
lacymorrow merged 1 commit into
mainfrom
LAC-3035/guard-fix

Conversation

@lacymorrow

Copy link
Copy Markdown
Owner

#484's step-level if: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN != '' }} guards are a workflow parse error — the secrets context is not allowed in if: expressions. Every push to main now produces a jobless failed run of both Claude workflows (e.g. run 30050985047: "This run likely failed because of a workflow file issue").

Fix: evaluate presence once in job-level env (HAS_CLAUDE_OAUTH_TOKEN), gate steps on env.HAS_CLAUDE_OAUTH_TOKEN. Validated with actionlint.

Verification: after merge, PR #485 (throwaway) gets rebased to re-trigger claude-review, which should pass with skipped steps + notice.

… (LAC-3035)

#484 used `secrets.CLAUDE_CODE_OAUTH_TOKEN` inside step-level `if:`
expressions, which is a workflow parse error (jobless failed runs on
every push to main). Evaluate the presence check once in job-level
`env` (where secrets is allowed) and gate steps on the env var.
Validated with actionlint.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@lacymorrow
lacymorrow merged commit 216470d into main Jul 23, 2026
4 checks passed
@lacymorrow
lacymorrow deleted the LAC-3035/guard-fix branch July 23, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant