Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

Inputs starting with 'github' not passed to Docker container

I noticed this documentation says that you cannot set a custom environment variable that starts with `GITHUB_`, i.e. `GITHUB_API`. Does the same hold for inputs that you use with the `with` syntax? i.e. `with: {github-api: "foo"}` which should then translate to an environment variable `INPUT_GITHUB-API`. I am trying this and seeing that the environment variable is not set for a Docker action. Is this to be expected?

 

edit: I'm not really sure what caused it but I saw that the INPUT_GITHUB_* variables were passed through for one run, but weren't on the other runs... so I don't really know what's going on.

 

1 Reply
Pilot Lvl 1
Message 2 of 2

Re: Inputs starting with 'github' not passed to Docker container

Any inputs you put in `with` are translated to `INPUT_NAME` environment varriables. So `api_url` becomes the `INPUT_API_URL` enviroment varriable.