Skip to content

Conversation

@jaysonv0341
Copy link
Contributor

Problem

The workflow was failing with errors:

  • Unrecognized named-value: 'secrets' on line 47 and 55

Root Cause

In reusable workflows with workflow_call, secrets cannot be checked with simple boolean logic like secrets.APP_ID && secrets.APP_PRIVATE_KEY. They must be compared with empty string.

Solution

  • Changed secrets.APP_ID && secrets.APP_PRIVATE_KEY to secrets.APP_ID != '' && secrets.APP_PRIVATE_KEY != ''
  • Removed unnecessary if condition on Claude step since ANTHROPIC_API_KEY is required anyway

Testing

This should fix the workflow validation errors.

In reusable workflows (workflow_call), secrets need to be checked
with != '' syntax, not just using && boolean logic. Also removed
the unnecessary if condition on the Claude step since ANTHROPIC_API_KEY
is required.
@jaysonv0341 jaysonv0341 merged commit 3ffaa84 into main Oct 13, 2025
@jaysonv0341 jaysonv0341 deleted the fix-secrets-access branch October 13, 2025 22:24
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