Skip to content

Commit b0b88f0

Browse files
committed
chore: migrate secretlint to standalone binary using aqua
Update pre-commit hook to use locally installed secretlint binary instead of using quick-start package via package managers. Add secretlint config and install secretlint via aqua package manager.
1 parent d856df8 commit b0b88f0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
#!/bin/sh
22

3-
secretlint="@secretlint/quick-start"
43
files=$(git ls-files)
54

65
if [ -z "$files" ]; then
76
exit 0
87
fi
98

10-
if command -v bun >/dev/null 2>&1; then
11-
bun x $secretlint $files
12-
elif command -v pnpm >/dev/null 2>&1; then
13-
pnpm dlx $secretlint $files
14-
else
15-
npx $secretlint $files
16-
fi
17-
9+
secretlint $files

.secretlintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"rules": [
3+
{
4+
"id": "@secretlint/secretlint-rule-preset-recommend"
5+
}
6+
]
7+
}

aqua/aqua.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@ packages:
135135
- name: nodejs/[email protected]
136136
- name: zigtools/[email protected]
137137
- name: tamasfe/[email protected]
138+
- name: secretlint/[email protected]

0 commit comments

Comments
 (0)