-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryosuke Tomita
committed
Dec 16, 2023
1 parent
3329358
commit 2ca047a
Showing
8 changed files
with
97 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# git secrets | ||
- パスワードのシークレットと思われる文字列を検知する。 | ||
- pre-commitを使って実装されているらしい。 | ||
## 環境構築 | ||
|
||
```shell | ||
cd ~/Downloads | ||
wget https://github.com/awslabs/git-secrets/archive/refs/tags/1.3.0.tar.gz | ||
tar zxvf 1.3.0.tar.gz | ||
cd git-secrets-1.3.0/ | ||
ls | ||
sudo make install | ||
git secrets # 動作確認 | ||
``` | ||
## 使用方法 | ||
- プロジェクトに移動して以下を実行 | ||
|
||
```shell | ||
git secrets --install | ||
git secrets --register-aws # awsのクレデンシャル検知ルールを登録 | ||
git secrets --list # 設定を確認 | ||
git secrets --scan # スキャン | ||
``` | ||
- また,コミットしようとした際にもscanが実行されており,特定の文字列が検知されるとコミットできなくなる。 |