How do I inject secrets and environment variables residing in my config.json to GitHub action in nodejs?
For instance
{
apiKey: "blablabla",
apiId: "anotherblabla"
}
How do I inject secrets and environment variables residing in my config.json to GitHub action in nodejs?
For instance
{
apiKey: "blablabla",
apiId: "anotherblabla"
}
Copyright © 2021 Jogjafile Inc.
Use github CLI and you get many options on how to inject secrets:
Paste secret value for the current repository in an interactive prompt
Read secret value from an environment variable
Read secret value from a file
Set secret for a deployment environment in the current repository
Set organization-level secret visible to both public and private repositories
Set organization-level secret visible to specific repositories
Set user-level secret for Codespaces
Set repository-level secret for Dependabot
Set multiple secrets imported from the ".env" file