Skip to content

Merge pull request #2 from trendmicro/random-addtion #13

Merge pull request #2 from trendmicro/random-addtion

Merge pull request #2 from trendmicro/random-addtion #13

Workflow file for this run

name: "Code Linter"
# It trigger when any push or PR is made in the the code under the branch configured
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
# Linter to check errors
jobs:
Linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Setup Linter cfn-lint
uses: scottbrenner/cfn-lint-action@v2
- name: Run Linter
run: |
cfn-lint --version
cfn-lint -t ./**/*template.yaml -i W E3012 E3005
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_PYTHON_PYLINT: true
VALIDATE_JAVASCRIPT_ES: true
VALIDATE_POWERSHELL: true
VALIDATE_JSON: true
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}