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(pre-commit): adds senstive data check like api keys #4030

Merged
merged 2 commits into from
Nov 2, 2024

Conversation

BLANKatGITHUB
Copy link
Contributor

This will check for sensitive data and linting problems before commit .
fix #4029

hooks:
- id: gitleaks

- repo: https://github.com/jumanjihouse/pre-commit-hooks
Copy link
Collaborator

Choose a reason for hiding this comment

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

we usually do not have shell scripts in our PRs. Is it really relevant to us?

rev: v1.3.5
hooks:
- id: cpplint
- repo: https://github.com/pylint-dev/pylint
Copy link
Collaborator

Choose a reason for hiding this comment

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

we use black for py linting.

- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: cpplint
Copy link
Collaborator

Choose a reason for hiding this comment

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

these checks are running locally, to my knowledge, not on github. Have you tried running them on our codebase?

@BLANKatGITHUB
Copy link
Contributor Author

fair enough I will remove them.
And just leave gitleaks for secret checks .

Signed-off-by: BLANKatGITHUB <131886247+BLANKatGITHUB@users.noreply.github.com>
Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

Thanks!

@romange romange merged commit 121a01f into dragonflydb:main Nov 2, 2024
9 checks passed
@romange romange changed the title feat(pre-commit): adds senstive data check like api keys and linting … feat(pre-commit): adds senstive data check like api keys Nov 2, 2024
@BLANKatGITHUB BLANKatGITHUB deleted the pre-comit branch November 2, 2024 13:56
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.

Add Sensitive Data Check And Linting Check
2 participants