lint/test
Andre Klärner ec05515e93
Some checks are pending
Publish Images / Build and Test (push) Waiting to run
Publish Images / Release (push) Blocked by required conditions
Build and Test / Set build metadata (push) Waiting to run
Build and Test / Build and Test (push) Blocked by required conditions
Build and Test / Test the Super-linter GitHub Action (push) Blocked by required conditions
Build and Test / Build test suite matrix (push) Waiting to run
Build and Test / Run test cases (push) Blocked by required conditions
Build and Test / Check if all the tests passed (push) Blocked by required conditions
Build and Test / preview-release-notes (push) Waiting to run
Lint commit / commitlint (push) Waiting to run
fix: ensure setting /github/workdir as Git safe directory works always (#6242)
When running super-linter on in a self hosted runner based on Action
Runner Controller in K8s container mode the /github/home directory is
not neccesarily mounted. But since we expect this directory to exist
super-linter fails to set /github/workspace as a Git safe directory:

    2024-10-04 17:58:37 [INFO]   Successfully validated GITHUB_WORKSPACE: /github/workspace
    2024-10-04 17:58:37 [DEBUG]   Configuring Git safe directories
    2024-10-04 17:58:37 [DEBUG]   Set /github/workspace as a Git safe directory
    error: could not lock config file /github/home/.gitconfig: No such file or directory
    2024-10-04 17:58:37 [FATAL]   Cannot configure /github/workspace as a Git safe directory.

Making sure this directory exists in container image ensures that under
no circumstances we can fail - if the action runner provides
/github/home it will be mounted over, and if not we provide a directory
where git can actually create the new .gitconfig.

This also defaults the HOME environment variable to /github/home as it
is the default in most places. So if somebody decides to override HOME
they are also expected to ensure that this directory exists (or is a
volume mount)
2024-12-12 15:44:28 +00:00
..
data feat: lint commit messages with commitlint (#6118) 2024-09-19 08:53:13 +00:00
inspec/super-linter fix: ensure setting /github/workdir as Git safe directory works always (#6242) 2024-12-12 15:44:28 +00:00
lib chore: prepare tests for updates (#6279) 2024-11-14 15:29:44 +01:00
linters fix: make git conflict markers check more precise (#6379) 2024-12-03 15:03:44 +00:00
linters-config/fix-mode chore: fix formatting issues (#6028) 2024-08-15 10:21:26 +02:00
run-super-linter-tests.sh fix: define command options function before use (#6375) 2024-11-27 14:33:40 +01:00
testUtils.sh chore: prepare tests for updates (#6279) 2024-11-14 15:29:44 +01:00
validate-docker-labels.sh Validate container image labels (#4926) 2023-12-07 14:18:47 +00:00