dcarbone/YAML to ENV

Parse all keys & values out of a YAML file, adding them to the $GITHUB_ENV file

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 22, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: dcarbone/yaml-to-env-action@3f3fc655ffefe5ca1ed86ac7d2f61ece644ac2ed # v3.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
yaml-fileFilepath to YAML to parseyes
yq-versionVersion of yq to install, if not already in path. Tested with >= 4.25.no
mask-valuesAdd value masking to all exported environment variable values (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#example-masking-an-environment-variable)nofalse
namedescription
yq-installed'true' if yq was installed by this action
var-countNumber of environment variables defined from source YAML file.
yaml-keysComma-separated string of keys extracted from source YAML file.
env-namesComma-separated string of exported environment variable names