forked from Yelp/detect-secrets
-
Notifications
You must be signed in to change notification settings - Fork 46
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
[BUG] Unable to mark markdown code blocks ignored #7
Comments
I am having a similar issue, with markdown. I can not seem to find a way to put a comment in markdown.
running pre-commit gives
|
This should be covered via the cat issue7/test.md
```bash
export ARTIFACTORY_API_KEY="<From above>"
export ARTIFACTORY_USER="[email protected]"
# 👇 the `\` is to allow github to render a markdown code block inside another
# code block. It would be deleted in the test
\```
detect-secrets scan --update .secrets.baseline --exclude-lines "export ARTIFACTORY_API_KEY=\"<From above>\"" --all-files issue7
detect-secrets audit .secrets.baseline
Nothing to audit!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
With a markdown code block that a secret is detected in. I'm unable to ignore the code block (and not affect the documentation).
To Reproduce
Steps to reproduce the behavior:
ARTIFACTORY_API_KEY
as allowed without changing how the documentation renders.Expected behavior
There should be a way to ignore this false positive without ignoring the whole file.
Impact
Medium. I have to ignore the whole file instead of a single line
Additional context:
The text was updated successfully, but these errors were encountered: