Skip to content

Commit

Permalink
dev: gitleaks rules configuration for checking secrets in megalinter …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
practicalli-johnny committed Mar 4, 2024
1 parent 5a07af4 commit 5563ceb
Show file tree
Hide file tree
Showing 3 changed files with 25 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",
]
1 change: 1 addition & 0 deletions .github/config/megalinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: ".github/config/markdown-link-check.js
MARKDOWN_REMARK_LINT_DISABLE_ERRORS: true
# MARKDOWN_MARKDOWN_TABLE_FORMATTER_DISABLE_ERRORS: false

REPOSITORY_GITLEAKS_CONFIG_FILE: ".github/config/gitleaks.toml"
REPOSITORY_TRUFFLEHOG_DISABLE_ERRORS: true # Errors only as warnings

# SPELL_CSPELL_DISABLE_ERRORS: true
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- code-challenge: rewrite code challenges overview
- dev: code block consistent style lint rules 46 & 48
- mkdocs: clojure-idiom admonition style
- dev: gitleaks rules configuration for checking secrets in megalinter workflow

# 2024-03-03

Expand Down

0 comments on commit 5563ceb

Please sign in to comment.