Skip to content

feat(security): run gitleaks in the commit hook and in CI - #7692

Merged
dan-petty merged 1 commit into
mainfrom
feat/7221-gitleaks-hook-and-ci
Nov 29, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/7221-gitleaks-hook-and-ci

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

  • Add .gitleaks.toml with default rules and allowlists for tests, archived OpenSpec changes, secret-masking spec fixtures, and grafana.md.
  • Add the gitleaks pre-commit hook in .pre-commit-config.yaml.
  • Copy and run gitleaks on PR commit ranges in .github/workflows/ci.yml (Static Analysis).
  • Register hook:gitleaks and gate:static on gitleaks in src/devops_cli/roadmap/runner_tools.py with a fail-to-pass test in tests/roadmap/test_roadmap_runner_tools.py.

Closes #7221

Change: openspec/changes/archive/2026-11-29-7221-gitleaks-hook-and-ci/

@dan-petty dan-petty added type/feature Type feature: a new function scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 29, 2026
@github-advanced-security

Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@dan-petty
dan-petty marked this pull request as ready for review November 29, 2026 04:31
@dan-petty
dan-petty merged commit c374a50 into main Nov 29, 2026
44 of 45 checks passed
@dan-petty
dan-petty deleted the feat/7221-gitleaks-hook-and-ci branch November 29, 2026 04:46
dan-petty-release Bot added a commit that referenced this pull request Nov 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.246.0](v0.245.0...v0.246.0)
(2026-11-29)


### Features

* **security:** run gitleaks in the commit hook and in CI
([#7692](#7692))
([c374a50](c374a50)),
closes [#7221](#7221)
* **service:** verify GitHub App webhooks with one secret
([#4417](#4417))
([#7694](#7694))
([dd7832f](dd7832f))


### Bug Fixes

* **github:** close review points of the
[#7195](#7195) reviewer
change ([#7695](#7695))
([5485f1e](5485f1e))
* **k8s:** Give crawl4ai a liveness probe
([#7698](#7698))
([53fba30](53fba30))
* **roadmap:** comment when watch row leaves a green draft
([#7690](#7690))
([6570f72](6570f72))
* **security:** session agents read issue and tool text as data
([#7693](#7693))
([4e58d15](4e58d15))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(security): run gitleaks in the commit hook and in CI

2 participants