Skip to content

Merge pull request #557 from asfadmin/dependabot/github_actions/ASFHy… #3

Merge pull request #557 from asfadmin/dependabot/github_actions/ASFHy…

Merge pull request #557 from asfadmin/dependabot/github_actions/ASFHy… #3

name: Static code analysis
on: push
jobs:
call-ruff-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.15.0
call-mypy-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-mypy.yml@v0.15.0
cfn-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: scottbrenner/cfn-lint-action@v2
with:
command: cfn-lint --info --ignore-checks W3002 --template **/cloudformation.yaml
statelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: gem install statelint
- run: |
# replace DefinitionSubstitution placeholders with dummy URIs to suppress linter errors
sed -i 's/"Resource": "${.*}"/"Resource": "foo:bar"/' step-function/step-function.json
statelint step-function/step-function.json