Menu

1 / 2

GitHub Actions composite action cannot access secrets directly

DEV Community: cicd·Kay·about 7 hours ago
#1mkUmFZe
#devtocicd#devto#dev#secrets#context
Reading 0:00
15s threshold

A GitHub Actions composite action cannot access secrets because the secrets context is not one of the names the expression parser recognizes inside an action.yml . The failure is a parse error rather than an empty value, so nothing runs at all.

The runner builds the message in ParseException as the description, the raw token in quotes, then the position and expression when a token is available.

What this error means

The run fails immediately with an annotation naming a file, a line and a column, and no job appears in the run at all. The file named is the action's action.yml , which may live in another repository entirely, so the first place you look is the workflow that called it and the workflow is fine.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.