dcarbone/YAML to ENV
Parse all keys & values out of a YAML file, adding them to the $GITHUB_ENV file
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 22, 2026
- License
- Apache 2.0
Pinned Snippet
uses: dcarbone/yaml-to-env-action@3f3fc655ffefe5ca1ed86ac7d2f61ece644ac2ed # v3.0.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| yaml-file | Filepath to YAML to parse | yes | — |
| yq-version | Version of yq to install, if not already in path. Tested with >= 4.25. | no | — |
| mask-values | Add 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) | no | false |
Outputs
| name | description |
|---|---|
| yq-installed | 'true' if yq was installed by this action |
| var-count | Number of environment variables defined from source YAML file. |
| yaml-keys | Comma-separated string of keys extracted from source YAML file. |
| env-names | Comma-separated string of exported environment variable names |