-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: megalinter config files gitleaks & lychee
- Loading branch information
1 parent
0fd07b1
commit a8f9b9c
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
title = "gitleaks config" | ||
|
||
[allowlist] | ||
description = "global allow lists" | ||
paths = [ | ||
'''gitleaks.toml''', | ||
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''', | ||
'''(go.mod|go.sum)$''', | ||
'''gradle.lockfile''', | ||
'''node_modules''', | ||
'''package-lock.json''', | ||
'''pnpm-lock.yaml''', | ||
'''Database.refactorlog''', | ||
'''vendor''', | ||
] | ||
|
||
[[rules]] | ||
description = "AWS Example API Key" | ||
id = "aws-example-api-key" | ||
regex = '''AKIAIOSFODNN7EXAMPLE''' | ||
keywords = [ | ||
"awstoken", | ||
] |
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,27 @@ | ||
|
||
# ---------------------------------------- | ||
# Base URL or website root directory to check relative URLs. | ||
base = "https://practical.li/" | ||
|
||
# Only test links with the given schemes (e.g. https). | ||
# Omit to check links with any other scheme. | ||
# At the moment, we support http, https, file, and mailto. | ||
scheme = ["https"] | ||
|
||
# ---------------------------------------- | ||
# Exclusions | ||
|
||
# Exclude URLs and mail addresses from checking (supports regex). | ||
exclude = ['^https://www\.linkedin\.com', '^https://127.0.0.0'] | ||
|
||
# Exclude these filesystem paths from getting checked. | ||
exclude_path = ["mkdocs.yml", "overrides", "includes", ".github", ".git"] | ||
|
||
# Exclude all private IPs from checking. | ||
# Equivalent to setting `exclude_private`, `exclude_link_local`, and | ||
# `exclude_loopback` to true. | ||
exclude_all_private = true | ||
|
||
# Check mail addresses | ||
include_mail = false | ||
# ---------------------------------------- |