Skip to content

Commit d9456f7

Browse files
renovate[bot]megalinter-bot
authored andcommitted
[MegaLinter] Apply linters fixes
1 parent f671152 commit d9456f7

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.automation/build.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
import subprocess
1212
import sys
1313
from datetime import date, datetime
14+
from pathlib import Path
1415
from shutil import copyfile, which
1516
from typing import Any
1617
from urllib import parse as parse_urllib
17-
from pathlib import Path
1818

1919
import git
2020
import jsonschema
@@ -831,7 +831,9 @@ def generate_linter_dockerfiles():
831831
logging.info(f"Updated {linters_matrix_file}")
832832

833833
# Write MD file
834-
Path(f"{REPO_HOME}/docs/standalone-linters.md").write_text(linters_md + "\n", encoding="utf-8")
834+
Path(f"{REPO_HOME}/docs/standalone-linters.md").write_text(
835+
linters_md + "\n", encoding="utf-8"
836+
)
835837

836838

837839
# Automatically generate a test class for each linter class

docs/descriptors/repository_gitleaks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ If MegaLinter with gitleaks runs against a PR on a platform not listed above, an
3434

3535
You can still choose to scan only PR commits in your CI/CD platform by setting the following MegaLinter environment variables:
3636

37-
- `PULL_REQUEST=true`\*
38-
- `REPOSITORY_GITLEAKS_PR_COMMITS_SCAN: true`
39-
- `REPOSITORY_GITLEAKS_PR_SOURCE_SHA` with last commit sha from your PR and `REPOSITORY_GITLEAKS_PR_TARGET_SHA` commit sha from your target branch (for example, `main` if you do PR to main branch)
37+
- `PULL_REQUEST=true`\*
38+
- `REPOSITORY_GITLEAKS_PR_COMMITS_SCAN: true`
39+
- `REPOSITORY_GITLEAKS_PR_SOURCE_SHA` with last commit sha from your PR and `REPOSITORY_GITLEAKS_PR_TARGET_SHA` commit sha from your target branch (for example, `main` if you do PR to main branch)
4040

4141
Example commands:
4242

43-
- Source commit SHA:
43+
- Source commit SHA:
4444
```bash
4545
git rev-list -n 1 refs/remotes/origin/<source_branch>
4646
```
4747

48-
- Target commit SHA:
48+
- Target commit SHA:
4949
```bash
5050
git rev-parse refs/remotes/origin/<target_branch>
5151
```

0 commit comments

Comments
 (0)