Skip to content
Snippets Groups Projects
Commit 21990f9d authored by wep23441's avatar wep23441
Browse files

secret check toml rules

parent 009524cd
No related branches found
No related tags found
Loading
......@@ -8,3 +8,17 @@ useDefault = true
# See https://github.com/zricethezav/gitleaks#configuration
# for details of extending this configuration for allowlists,
# etc
title = "Custom Secret Rules"
[[rules]]
id = "custom-access-key"
description = "Detect hardcoded access keys"
regex = '''ACCESS_KEY_[A-Z_0-9]+ = ["'][A-Za-z0-9!@#$%^&*()_+=\-]+["']'''
tags = ["key"]
[[rules]]
id = "custom-password"
description = "Detect hardcoded passwords"
regex = '''password\s*=\s*["'][A-Za-z0-9!@#$%^&*()_+=\-]+["']'''
tags = ["password"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment