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
GitHub Actions Runner configuration (please complete the following information):
OS: Ubuntu 22.04.4 (workflow doesn't specify it, but logs show it)
Inputs: none when installing, see below for invocation
Version: scottbrenner/cfn-lint-action@v2 (based on logs: 4f8adb0)
Additional context
Bit of a guess, but: aws-cloudformation/cfn-lint#3452 (comment) hints that they use "extra keywords", and it seems the sarif dependency is optional -- so depending on cfn-lint[full] likely fixes things.
Also, if that is true the hint from #274 (comment) should work: Install the whole thing afterwards.
Actual workflow invocation of cfn-lint:
- name: Run cfn-lintrun: | cfn-lint --version # Ignored checks: # - W3002: Code may only work with `package`: We do that. # Note that the "weird" invocation is done to ignore the error code from xargs/cfn-lint, because that will stop # Github action execution immediately. exit=$(sh -c "find aws -name '*.cfn.yaml' | xargs cfn-lint --ignore-checks=W3002 -f sarif > cfn-lint.sarif.in; echo $?") echo "::set-output name=cfn-lint-exit::${exit}" # Drop out the empty `helpUri` inside the Sarif output, see # https://github.com/aws-cloudformation/cfn-lint/pull/2276 for details jq 'del(.runs[].tool.driver.rules[].helpUri|select(.==""))' <cfn-lint.sarif.in >cfn-lint.sarif
The text was updated successfully, but these errors were encountered:
Installing with [full] might be the quickest fix for the general case, in our situation we will first try whether [sarif] works well enough: aws-cloudformation/cfn-lint#3454
Describe the bug
Our linting action is failing, because it doesn't seem to install the needed dependencies:
To Reproduce
Expected behavior
cfn-lint works -- and produces sarif output.
Screenshots
GitHub Actions Runner configuration (please complete the following information):
scottbrenner/cfn-lint-action@v2
(based on logs: 4f8adb0)Additional context
Bit of a guess, but: aws-cloudformation/cfn-lint#3452 (comment) hints that they use "extra keywords", and it seems the sarif dependency is optional -- so depending on
cfn-lint[full]
likely fixes things.Also, if that is true the hint from #274 (comment) should work: Install the whole thing afterwards.
Actual workflow invocation of cfn-lint:
The text was updated successfully, but these errors were encountered: