Skip to content

Commit b20fd32

Browse files
Revert "fix: add GITHUB_BEFORE_SHA to super-linter configuration to prevent failures on shallow repositories"
This reverts commit 73b8f1d.
1 parent 73b8f1d commit b20fd32

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/linter.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ jobs:
4848
DEFAULT_BRANCH: main
4949
FILTER_REGEX_EXCLUDE: dist/**/*
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
# Explicitly provide the base SHA so super-linter does not try to
52-
# derive an unreachable ancestor commit like `<sha>~360` which has
53-
# caused failures on shallow or young repositories.
54-
# For pull_request events use the PR base; for push events fall back
55-
# to the `before` SHA from the push payload.
56-
GITHUB_BEFORE_SHA:
57-
${{ github.event.pull_request.base.sha || github.event.before }}
5851
LINTER_RULES_PATH: .
5952
VALIDATE_ALL_CODEBASE: true
6053
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false

0 commit comments

Comments
 (0)