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

feat(SP-1744): update to gitleaks v8 #119

Merged
merged 7 commits into from
Jun 30, 2022
Merged

Conversation

davidsalvador-tf
Copy link
Collaborator

@davidsalvador-tf davidsalvador-tf commented Jun 28, 2022

This PR updates the tool gitleaks used in the secrets detection check to its latest major version.

gitleaks API and exception file for every repo (.gitleaks.toml) is broken with this new version. So, the migration plan I have in mind is the following:

  1. Merge this into ci-standard-checks@v1-beta
  2. Test secrets detection in repos that use ci-standard-checks@v1-beta
  3. Submit PRs to all repos that have a .gitleaks.toml file and use ci-standard-checks@v1. The PR will update .gitleaks.toml to make it compatible with gitleaks version 8 and also make the repos use ci-standard-checks@v1-beta
  4. Once all PRs from previous step are merged, promote ci-standard-checks@v1-beta to ci-standard-checks@v1 and submit PRs to the same repos to make them use ci-standard-checks@v1 instead of ci-standard-checks@v1-beta

Maybe there's a better migration plan, let me know what you think. Thanks!

@davidsalvador-tf davidsalvador-tf marked this pull request as ready for review June 28, 2022 09:20
@davidsalvador-tf davidsalvador-tf requested a review from a team June 28, 2022 09:20
@alexkravch
Copy link
Contributor

Hi @davidsalvador-tf, thank you about implementing this!

In step 3 you mentioned The PR will update .gitleaks.toml to make it compatible with gitleaks version 8 and also make the repos use ci-standard-checks@v1 probably meant to use ci-standard-checks@v1-beta right?

Also do you have a plan on how to create PR to all repos already? (we have this, might be helpful)

@davidsalvador-tf
Copy link
Collaborator Author

You're right @alexkravch! I just fixed the step description.

About the PRs, yep I was planning on using that tool as I need to update around 50 repos.

@davidsalvador-tf davidsalvador-tf merged commit 8425d87 into main Jun 30, 2022
@davidsalvador-tf davidsalvador-tf deleted the SP-1744-gitleaks-v8 branch June 30, 2022 10:06
@github-actions
Copy link

🎉 This PR is included in version 1.21.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants