You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on: [push]
jobs:
example:
runs-on: ubuntu-latest
steps:
- name: set output
id: set-value
run: |
echo "value=key_name" >> "$GITHUB_OUTPUT"
- name: use env var
env:
"${{ steps.set-value.outputs.value }}": ${{ github.repository_owner }}
run: |
echo "${${{ steps.set-value.outputs.value }}}"
(the actual workflow doesn't echo, it calls Bundler, which looks for environment variables with special formats to set config options)
This works fine when the workflow runs, but Actionlint reports
.github/workflows/test.yml:13:9: environment variable name "${{ steps.set-value.outputs.value }}" is invalid. '&', '=' and spaces should not be contained [env-var]
|
13 | "${{ steps.set-value.outputs.value }}": ${{ github.repository_owner }}
| ^~~~
Deleting the spaces resolves the false positive, but it reveals that Actionlint isn't handling the interpolation in the environment variable name.
The text was updated successfully, but these errors were encountered:
I have a workflow like:
(the actual workflow doesn't
echo
, it calls Bundler, which looks for environment variables with special formats to set config options)This works fine when the workflow runs, but Actionlint reports
Deleting the spaces resolves the false positive, but it reveals that Actionlint isn't handling the interpolation in the environment variable name.
The text was updated successfully, but these errors were encountered: