diff --git a/.github/linters/.hadolint.yaml b/.github/linters/.hadolint.yaml new file mode 100644 index 000000000..f8cbb9da2 --- /dev/null +++ b/.github/linters/.hadolint.yaml @@ -0,0 +1 @@ +failure-threshold: error diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 433590431..e48bd7f98 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,9 +1,7 @@ - name: Lint Code Base on: - pull_request: - branches: [main] + pull_request: null permissions: {} @@ -19,12 +17,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 - name: Lint Code Base - uses: github/super-linter@v7 # https://github.com/github/super-linter + uses: github/super-linter@v6 # https://github.com/github/super-linter env: DEFAULT_BRANCH: main + FILTER_REGEX_EXCLUDE: eng/common/.* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_DOCKERFILE_HADOLINT: true + VALIDATE_MARKDOWN: true