super-linter: Don't require full Git environment validation when users enable IGNORE_GITIGNORED_FILES
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Upgrading from v5 to v6 is resulting in .git /action/lib/functions/validation.sh: line 202: GITHUB_SHA: unbound variable error.
Expected Behavior
For super-linter container to run correctly.
Super-Linter version
v6 & slim-v6
Relevant log output
/action/lib/functions/validation.sh: line 202: GITHUB_SHA: unbound variable.
Steps To Reproduce
Running the following command
docker run --rm \
-v "$(git rev-parse --show-toplevel):/tmp/lint" \
-e DEFAULT_WORKSPACE=/tmp/lint \
-e SUPPRESS_POSSUM=true \
-e RUN_LOCAL=true \
-e USE_FIND_ALGORITHM=true \
-e LINTER_RULES_PATH=".dsop/linters" \
ghcr.io/super-linter/super-linter:slim-v6
Error shows up locally and on Gitlab pipeline. Downgrading to v5 fixes this issue.
Anything else?
No response
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 3
- Comments: 19
Commits related to this issue
- fix: no full git validation when ignoring files - Don't require Git SHA and branch validation when IGNORE_GITIGNORED_FILES=true because we only need to validate that the workspace is a Git reposi... — committed to super-linter/super-linter by ferrarimarco 2 months ago
- fix: no full git validation when ignoring files - Don't require Git SHA and branch validation when IGNORE_GITIGNORED_FILES=true because we only need to validate that the workspace is a Git reposi... — committed to harryzcy/super-linter by ferrarimarco 2 months ago
- fix: no full git validation when ignoring files - Don't require Git SHA and branch validation when IGNORE_GITIGNORED_FILES=true because we only need to validate that the workspace is a Git reposi... — committed to super-linter/super-linter by ferrarimarco 2 months ago
- fix: no full git validation when ignoring files - Don't require Git SHA and branch validation when IGNORE_GITIGNORED_FILES=true because we only need to validate that the workspace is a Git reposi... — committed to super-linter/super-linter by ferrarimarco 2 months ago
- fix: no full git validation when ignoring files (#5599) - Don't require Git SHA and branch validation when IGNORE_GITIGNORED_FILES=true because we only need to validate that the workspace is a ... — committed to super-linter/super-linter by ferrarimarco 2 months ago
#5599 should take care of this.