Skip to content

Bh/detect secrets - #3860

Merged
jonpspri merged 2 commits into
mainfrom
bh/detect-secrets
Mar 27, 2026
Merged

Bh/detect secrets#3860
jonpspri merged 2 commits into
mainfrom
bh/detect-secrets

Conversation

@brian-hussey

@brian-hussey brian-hussey commented Mar 25, 2026

Copy link
Copy Markdown
Member

🔗 Related Issue

Closes #3859 3859


📝 Summary

This PR adds the capability to execute detect-secrets as part of pre-commit checks, in CI mode it will fail pipelines if new secrets are detected compared to the .secrets.baseline file.
Documentation is also added to let developers know that if a secret is detected they should run make detect-secrets-scan to update the found potential secrets followed by make detect-secrets-audit to go through the process of attesting to the state of any potential secrets detected.

Also included is a task make detect-secret-hook which is the standalone equivalent of the check that will be executed in pre-commit.

This PR also includes some true up required (line endings) to be able to activate the pre-commit quality gate.


🏷️ Type of Change

  • Bug fix
  • Feature / Enhancement
  • Documentation
  • Refactor
  • Chore (deps, CI, tooling)
  • Other (describe below)

🧪 Verification

Check Command Status
Lint suite make lint
Unit tests make test
Coverage ≥ 80% make coverage

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • Tests added/updated for changes
  • Documentation updated (if applicable)
  • No secrets or credentials committed

📓 Notes (optional)

Screenshots, design decisions, or additional context.

Comment thread Makefile Outdated

@madhu-mohan-jaishankar madhu-mohan-jaishankar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@brian-hussey brian-hussey added wxo wxo integration release-fix Critical bugfix required for the release labels Mar 25, 2026
@brian-hussey brian-hussey added this to the Release 1.0.0 milestone Mar 25, 2026
lucarlig
lucarlig previously approved these changes Mar 25, 2026

@lucarlig lucarlig left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why no CI check, pre-commit can be skipped

@brian-hussey brian-hussey removed the release-fix Critical bugfix required for the release label Mar 26, 2026
@brian-hussey

Copy link
Copy Markdown
Member Author

why no CI check, pre-commit can be skipped

@lucarlig Thanks, I'm looking at how to make this required for every PR now, it never activated. Remove "release-fix" tag as we're not yet ready.

lucarlig
lucarlig previously approved these changes Mar 26, 2026
…cts with detect-secrets

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>
…usly missed

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>
@brian-hussey brian-hussey added the release-fix Critical bugfix required for the release label Mar 27, 2026

@madhu-mohan-jaishankar madhu-mohan-jaishankar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. LGTM.

@jonpspri
jonpspri merged commit 7a551ed into main Mar 27, 2026
36 checks passed
@jonpspri
jonpspri deleted the bh/detect-secrets branch March 27, 2026 10:56
madhu-mohan-jaishankar pushed a commit that referenced this pull request Mar 27, 2026
* Final true up of detect-secrets work. Disabling gitleaks as it conflicts with detect-secrets

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>

* True up final pieces to pass other pre-commit stages that were previously missed

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>

---------

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>
msureshkumar88 pushed a commit that referenced this pull request May 13, 2026
* Final true up of detect-secrets work. Disabling gitleaks as it conflicts with detect-secrets

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>

* True up final pieces to pass other pre-commit stages that were previously missed

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>

---------

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>
kamath-a pushed a commit to kamath-a/mcp-context-forge that referenced this pull request Jun 26, 2026
* Final true up of detect-secrets work. Disabling gitleaks as it conflicts with detect-secrets

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>

* True up final pieces to pass other pre-commit stages that were previously missed

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>

---------

Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-fix Critical bugfix required for the release wxo wxo integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE]: Add detect-secrets baseline workflow and documentation

4 participants