Using environment variables in GitHub Actions
Things held as GitHub secrets must be defined as environment variables in the GitHub Actions workflow in order to be able to use them in a script. E.g.:
1
2
3
4
5
6
7
- name: Run script
env:
ODBC_DRIVER: $
ODBC_SERVER: $
ODBC_DATABASE: $
ODBC_AUTHENTICATION: $
run: python scraper.py
Variables can also be set for an entire workflow or job.
This post is licensed under CC BY 4.0 by the author.