Skip to content

step-security/envsubst-action

Repository files navigation

Envsubst Action

This action allows you to substitute environment variables in a file.

Usage

template.json

{
  "version": "${VERSION}",
  "instance": "${INSTANCE}"
}

.github/workflows/pipeline.yaml

- uses: step-security/envsubst-action@v1
  env:
      VERSION: 1.2.3
      INSTANCE: staging
  with:
    input: template.json
    output: deployment.json

deployment.json

{
  "version": "1.2.3",
  "instance": "staging"
}

About

Github Action for envsubst. Secure drop-in replacement for danielr1996/envsubst-action.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •