From a039250b3b7cb3ebde4a05a8f1a58728d9aa12b5 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 7 Jul 2022 16:27:29 +1000 Subject: [PATCH] .github: Lint modified files only with Super-Linter (#6531) https://github.com/github/super-linter#standard-image --- .github/workflows/linter.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 88a9fe8e06d..cafe777a90a 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -30,9 +30,15 @@ jobs: name: SuperLinter Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout Code + 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: SuperLinter uses: github/super-linter@v4 env: - VALIDATE_PYTHON_FLAKE8: true + DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_ALL_CODEBASE: false + VALIDATE_PYTHON_FLAKE8: true