GitHub Secrets in netlify.toml

I’m creating a build plugin and need to pass a GitHub secret as a build environment variable. Is this possible? If so, how?

[build.environment]
  my_secret = "${{ secrets.FOO }}"

Hi @agardnerIT, thanks for your post.

Regarding your question…

Using environment variables directly as values in your netlify.toml isn’t supported. For example, key = "$VARIABLENAME" will not inject $VARIABLENAME’s value into netlify.toml. One exception to this rule is signed proxy redirects.

For all other cases, you have two options for working with environment variable values in a file-based or programmatic way.

For for information kindly visit to like below.

Hope this helps.
Thanks.