Skip to content

Commit

Permalink
dev: megalinter config files gitleaks & lychee
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Jun 2, 2024
1 parent 0fd07b1 commit a8f9b9c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/config/gitleaks.toml
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",
]
27 changes: 27 additions & 0 deletions .github/config/lychee.toml
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
# ----------------------------------------

0 comments on commit a8f9b9c

Please sign in to comment.