Skip to content

Commit c2747a6

Browse files
committed
Fix: Correct filepath for TOMLs
1 parent b546cba commit c2747a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/org-gitleaks-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE_PASSED }}
3838
# UPDATED: Point to the config file inside the folder from Step 2
39-
GITLEAKS_CONFIG: ".github-config/gitleaks.toml"
39+
GITLEAKS_CONFIG: ".github-config/gitleaks/gitleaks.toml"

repo_files/.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ repos:
77
entry: >
88
bash -c '
99
mkdir -p .github-config &&
10-
curl -f -s https://raw.githubusercontent.com/nhsbsa-data-analytics/.github/main/gitleaks.toml -o .github-config/gitleaks.toml &&
11-
curl -f -s https://raw.githubusercontent.com/nhsbsa-data-analytics/.github/main/gitleaks-nhsbsa.toml -o .github-config/gitleaks-nhsbsa.toml &&
10+
curl -f -s https://raw.githubusercontent.com/nhsbsa-data-analytics/.github/main/gitleaks/gitleaks.toml -o .github-config/gitleaks.toml &&
11+
curl -f -s https://raw.githubusercontent.com/nhsbsa-data-analytics/.github/main/gitleaks/gitleaks-nhsbsa.toml -o .github-config/gitleaks-nhsbsa.toml &&
1212
gitleaks protect --config=".github-config/gitleaks.toml" --verbose --redact --staged;
1313
EXIT_CODE=$?;
1414
rm -rf .github-config;

0 commit comments

Comments
 (0)