Can you incorporate Github secrets in a custom configuration yml file?

486 views Asked by At

I have a python project where I intend to have a .yml config file. My question is, can something like this work in a github repo:

name: something
  API_KEY: ${{ secrets.API_KEY }}
name: somehting2
  SECRET_ID: ${{ secrets.SECRET_ID }}

This is not part of a github action, it's a config file in the root directory of the project. I prefer to have it this way rather than creating an environment variable for each credential and "pollute" the codebase with calls to get these variables.

0

There are 0 answers