I have environment secrets set up in a Python GitHub actions project:
I can access the secrets from the actions file, because the following:
jobs:
log-the-inputs:
runs-on: ubuntu-latest
steps:
- run: |
echo "Log level: $LEVEL"
echo "Tags: $TAGS"
echo "Environment: $ENVIRONMENT"
echo ${{ secrets.EMAIL_USER }}
will output
Run echo "Log level: $LEVEL"
Log level: warning
Tags: false
Environment: novi
***
I expected the secrets to be available from the environment variables, but when I use os.environ EMAIL_USER and EMAIL_PASSWORD are not in there.
How to access the secrets from the python script?
