From 2107079a96cd272e7401008defa7a3c8581ccd09 Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Mon, 4 Mar 2024 07:17:11 -0600 Subject: [PATCH] Do not hardcode the default branch for linter --- .github/workflows/linter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 9fa94821..44bf8696 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -72,7 +72,7 @@ jobs: uses: super-linter/super-linter/slim@v5 env: LINTER_RULES_PATH: / - DEFAULT_BRANCH: main + DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} FILTER_REGEX_EXCLUDE: NEWS.md|design/.*|testthat/_snaps/.* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_ALL_CODEBASE: false