Skip to content

Commit 770f21f

Browse files
committed
ci: add Fastlane wrapper command for gitleaks
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent 9e417a7 commit 770f21f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

DesignToolbox/fastlane/Fastfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@ platform :ios do
138138
end
139139
end
140140

141+
# ------------------------------------------------------------
142+
# RUN GITLEAKS FOR SECET LEAKS SCAN
143+
# ------------------------------------------------------------
144+
desc "RUN GITLEAKS FOR SECET LEAKS SCAN"
145+
lane :check_leaks do
146+
puts "👉 Run Gitleaks for leaks scan"
147+
148+
# If there are violations, non 0 error be returned by swiftlint, making Fastlane fail (expected)
149+
sh "cd .. && gitleaks detect -v -l debug --source ."
150+
end
151+
141152
# ------------------------------------------------------------
142153
# UPDATE BUILD NUMBER WITH TIMESTAMP
143154
# ------------------------------------------------------------

DesignToolbox/fastlane/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ RUN SWIFT LINT TO CHECK SMELLS
4747

4848
RUN LICENSEPLIST TO UPDATE LIST OF THIRD PARTIES
4949

50+
### ios check_leaks
51+
52+
```sh
53+
[bundle exec] fastlane ios check_leaks
54+
```
55+
56+
RUN GITLEAKS FOR SECET LEAKS SCAN
57+
5058
### ios update_build_number
5159

5260
```sh

0 commit comments

Comments
 (0)