Skip to content

Can't set environment variable from secret #26339

Answered by otter-computer
g105b asked this question in Actions
Discussion options

You must be logged in to vote

It looks like you’re trying to use secrets from inside an action definition file rather than inside a workflow. Secrets aren’t available directly inside a custom action, they need to be passed into a custom action input from a workflow file.

You should be able to define these as an input inside your action.yml and then pass your required secrets to this action from inside the workflow file you’re using this action in.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants