We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on: push jobs: test: runs-on: ubuntu-latest steps: - run: echo "$FOO" env: FOO: FOO - run: echo "$bar" env: bar: bar
❯ actionlint testdata/examples/shellcheck_integration.yaml testdata/examples/shellcheck_integration.yaml:9:9: shellcheck reported issue in this script: SC2154:warning:1:7: bar is referenced but not assigned [shellcheck] | 9 | - run: echo "$bar" | ^~~~ ❯ cat /etc/os-release NAME="Ubuntu" VERSION="21.04 (Hirsute Hippo)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 21.04" VERSION_ID="21.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=hirsute UBUNTU_CODENAME=hirsute ❯ actionlint --version 1.6.4 installed by downloading from release page built with go1.17.1 compiler for linux/amd64
Actionlint doesn't give env:, jobs.<job_id>.env or jobs.<job_id>.steps[*].env to shellcheck. And shellcheck skips variable unassigned check only if it doesn't contains lowercase.
env:
jobs.<job_id>.env
jobs.<job_id>.steps[*].env
run
The text was updated successfully, but these errors were encountered:
I'm sorry for late response. I was focusing on other project.
Sorry, something went wrong.
545ead9
@rhysd Thanks responsible response!
This fix was released at v1.6.5.
No branches or pull requests
minimum reproducing example
What's happen
Actionlint doesn't give
env:
,jobs.<job_id>.env
orjobs.<job_id>.steps[*].env
to shellcheck.And shellcheck skips variable unassigned check only if it doesn't contains lowercase.
Solution candidate
env:
,jobs.<job_id>.env
andjobs.<job_id>.steps[*].env
then prepend it to therun
script.The text was updated successfully, but these errors were encountered: