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

secret check toml rules

parent 009524cd
Branches
No related tags found
No related merge requests found
......@@ -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.
Please register or to comment