Add gitleaks config file and update git ignore list #270
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds the
.ansible
directory to the git ignore list. Runningpre-commit
is causing the.ansible
directory to be created in the current working directory and automated PR creation such as update the pre-commit versions to include it in the git commit.This caused Red Hat Infosec to raise a security leak as the
kubernetes.core
collection tests include passwords and/or tokens needed for tests.In addition to adding the
.ansible
directory to the git ignore list this also include a gitleaks configuration file that will cause gitleaks to not raise a security violation for passwords and tokens in the.ansible/collections
directory. This is being added at the request of the Red Hat Infosec team and the contents of the.gitleaks.toml
file was provided by them.How should this be tested?
N/A
Is there a relevant Issue open for this?
None
Other Relevant info, PRs, etc
See PRs #266 and #269 for example of where the
.ansible
directory was included in the automated update to the pre-commit configuration.