Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
pull_request:
branches:
- develop
- main
push:
tags:
- '*.*.*'
- '*.*.*-rc*'

jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check for GitLeaks
uses: gacts/gitleaks@v1
30 changes: 30 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -----------------------------------------------------------------------------
# Gitleaks Configuration
# -----------------------------------------------------------------------------
title = "Gitleaks Configuration"

# Extend the built-in default ruleset so we only add repo-specific allowlists.
[extend]
useDefault = true

# -----------------------------------------------------------------------------
# Allowlist (False Positives)
# -----------------------------------------------------------------------------
# Each allowlist is scoped to a single rule and a single exact file path.
# This keeps the ignore surface minimal while allowing known test fixtures and
# archived example content to pass secret scanning.

[[allowlists]]
description = "Allow GBK translation sequence false positive for Square access token"
targetRules = ["square-access-token"]
paths = [
'''^grumpy/reference/NC_000962\.3\.gbk''',
'''^reference/NZ_CP085945\.1\.gbk'''
]

[[allowlists]]
description = "Allow GBK translation sequence false positive for alibaba access key ids"
targetRules = ["alibaba-access-key-id"]
paths = [
'''^reference/NZ_CP085945\.1\.gbk'''
]
Loading