Skip to content

Commit 0d88fe5

Browse files
authored
ci: add git-secrets (#22)
1 parent aa444c3 commit 0d88fe5

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.github/actions/basics/action.yml

+12
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ runs:
5959

6060
# ===============================================
6161

62+
- name: Install git-secrets
63+
shell: bash
64+
run: |
65+
sudo apt-get update && sudo apt-get install -y git-secrets
66+
git-secrets --register-aws
67+
68+
- uses: ./.github/actions/elapsed-time
69+
with:
70+
statement: "Install git-secrets"
71+
72+
# ===============================================
73+
6274
- name: restore lychee cache
6375
uses: actions/cache@v4
6476
with:

.pre-commit-config.yaml

+10-5
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,17 @@ repos:
124124
pass_filenames: true
125125
types: [yaml]
126126

127+
- id: git-secrets
128+
name: git-secrets
129+
language: system
130+
entry: bash
131+
args:
132+
- -c
133+
- |
134+
git-secrets --scan
135+
pass_filenames: false
136+
127137
- repo: https://github.com/igorshubovych/markdownlint-cli
128138
rev: v0.43.0
129139
hooks:
130140
- id: markdownlint
131-
132-
- repo: https://github.com/pre-commit/pre-commit-hooks
133-
rev: v5.0.0
134-
hooks:
135-
- id: forbid-submodules

0 commit comments

Comments
 (0)