Environment variables for inputs of custom actions use the "INPUT_" prefix
![](https://techprofile.blob.core.windows.net/images/02MPuYcwsUKaUxzh9EP_tw.png?8D930F)
Carlos Quintero
100
Reputation points
In this page:
if appears this:
inputs:
super_secret:
description: 'My secret token'
required: true
If you need to access the encrypted secret in your action's code, the action code could read the value of the input using the
$SUPER_SECRET
environment variable.
That is incorrect. The environment variable that GitHub Actions create for the input of an action uses the prefix "INPUT_", so it should be "$INPUT_SUPER_SECRET". See: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
This question is related to the following Learning Module