Skip to content

Commit

Permalink
dev: github megalinter workflow configs
Browse files Browse the repository at this point in the history
- gitleaks
- lychee
  • Loading branch information
practicalli-johnny committed May 23, 2024
1 parent 1b13e6d commit ff7a63c
Show file tree
Hide file tree
Showing 2 changed files with 47 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",
]
24 changes: 24 additions & 0 deletions .github/config/lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# ----------------------------------------
# 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://web\.archive\.org/web/']

# Exclude all private IPs from checking.
# Equivalent to setting `exclude_private`, `exclude_link_local`, and
# `exclude_loopback` to true.
exclude_all_private = false

# Check mail addresses
include_mail = false
# ----------------------------------------

0 comments on commit ff7a63c

Please sign in to comment.