Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes false positive in secret detection against baseline due to config change #154

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

nutjob4life
Copy link
Member

🗒️ Summary

The problem wasn't that a new secret suddenly appeared. Instead, it was that the .pre-commit-config.yaml wasn't included in the baseline configuration which resulted in a diff when the GitHub Action ran. The GitHub Action from SLIM is a bit primitive: it treats any diff as a new secret. In this case, the diff was a difference in config, not in secrets.

This also properly escapes the . in the regex for excluded files named .pre-commit-config.yaml.

⚙️ Test Data and/or Report

See https://github.com/nasa-pds-engineering-node/deep-archive/actions/runs/7035037799

♻️ Related Issues

The problem wasn't that a new secret suddenly appeared. Instead, it was that the `.pre-commit-config.yaml` wasn't included in the baseline configuration which resulted in a diff when the GitHub Action ran. The GitHub Action from SLIM is a bit primitive: it treats _any diff_ as a new secret. In this case, the diff was a difference in config, not in secrets.

This also properly escapes the `.` in the regex for excluded files named `.pre-commit-config.yaml`.
@jordanpadams jordanpadams merged commit f5d6056 into main Nov 29, 2023
1 check passed
@jordanpadams jordanpadams deleted the secrets-part-deux branch November 29, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants