-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
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
false negative on use env
in env
definition
#158
Comments
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#env
Official document mentioned this limitation here. https://docs.github.com/en/actions/learn-github-actions/contexts#env-context
|
Now workflow like below on: push
jobs:
my_job:
runs-on: ubuntu-latest
env:
FOO: aaa
steps:
- uses: test/${{ env.FOO }}@main
env:
BAR: ${{ env.FOO }}
id: foo-${{ env.FOO }} causes errors as follows:
|
This fix was included in the latest release v1.6.14. |
On v1.6.14 I am seeing a lot of errors around uses of |
@MatthewRyanRead Do you mean referring |
Since these changes, I am experiencing a problem accessing top-level Commit: csvalpha/sofia@51db186 The job configuration worked before, so this new error seems to be incorrect. |
I too was referencing env.GITHUB_SHA in the end: declarations of an individual task. That is now reporting as invalid. |
We are also seeing a new error reported on a previously "passing" workflow file. Failing run: https://github.com/Expensify/App/runs/7078764707?check_suite_focus=true Workflow file: https://github.com/Expensify/App/blob/main/.github/workflows/platformDeploy.yml |
@rhysd Is this on your radar or should I open a new issue for it? |
Thank you for the information. I understood what is wrong.
I'll fix this and soon release 1.6.15 |
I added the fix at 323ceb4. |
The fix was released with v1.6.15. |
this commit passes
actionlint
kazuk/sbom-ghr@fe18f2d
but
The workflow is not valid.
shown as bellow.The text was updated successfully, but these errors were encountered: