Skip to content

Commit db4253f

Browse files
committed
fix(ci): resolve super-linter failures
- Set DEFAULT_BRANCH to current branch to fix 'master not found' error - Use fetch-depth: 0 so GITHUB_BEFORE_SHA can be resolved - Set update_etl.sh executable bit (BASH_EXEC) - Fix .codespellrc tab indentation (EDITORCONFIG) - Add .gitleaks.toml allowlist for GA4 Measurement Protocol API secret (GITLEAKS) - Fix .markdown-lint.yml: disable MD030/MD013/MD033/MD041/MD051 to match existing repo style (MARKDOWN)
1 parent a14433c commit db4253f

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

.github/linters/.codespellrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[codespell]
22
# Skip data tables that contain many short server identifiers (e.g. "fof", "nd")
33
skip =
4-
lgsm/data/*.csv,
5-
package-lock.json,
6-
*/package-lock.json,
7-
node_modules,
8-
*/node_modules/*
4+
lgsm/data/*.csv,
5+
package-lock.json,
6+
*/package-lock.json,
7+
node_modules,
8+
*/node_modules/*
99

1010
# Ignore common identifiers/acronyms and extensions used throughout LinuxGSM
1111
ignore-words-list = distroname,fof,nd,sav,parms,ThirdParty

.github/linters/.gitleaks.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title = "LinuxGSM Gitleaks Config"
2+
3+
[allowlist]
4+
description = "Known false positives"
5+
regexes = [
6+
# Google Analytics 4 Measurement Protocol API secret - not a sensitive credential,
7+
# it is intentionally embedded in client-side code and is safe to be public.
8+
'''apisecret="[A-Za-z0-9_\-]+"''',
9+
]

.github/linters/.markdown-lint.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ MD013: false
1212
# MD033: The main README uses inline HTML for badges.
1313
MD033: false
1414

15-
# Match existing list formatting in this repo.
15+
# MD007: Repo uses 2-space indentation for nested lists.
1616
MD007:
17-
indent: 4
17+
indent: 2
1818

19-
MD030:
20-
ul_single: 3
21-
ol_single: 2
22-
ul_multi: 3
23-
ol_multi: 2
19+
# MD030: Repo mixes 1-space unordered and 2-space ordered list markers.
20+
MD030: false

.github/workflows/action-super-linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ jobs:
2727
- name: Checkout code
2828
uses: actions/checkout@v6
2929
with:
30-
# Shallow clone reduces transient fetch failures (HTTP 500) from GitHub.
31-
# We lint the whole codebase instead of relying on git history.
32-
fetch-depth: 1
30+
# Full clone required so super-linter can resolve GITHUB_BEFORE_SHA.
31+
fetch-depth: 0
3332
fetch-tags: false
3433
persist-credentials: false
3534

@@ -42,6 +41,7 @@ jobs:
4241
env:
4342
# To report GitHub Actions status checks
4443
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
DEFAULT_BRANCH: ${{ github.ref_name }}
4545
VALIDATE_BIOME_FORMAT: false
4646
VALIDATE_BIOME_LINT: false
4747
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false

lgsm/modules/update_etl.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)