-
Notifications
You must be signed in to change notification settings - Fork 1
🔒 Add Gitleaks Action for Secret Scanning #40
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
Open
rtrofimenkov-ssdlc
wants to merge
20
commits into
main
Choose a base branch
from
feature/gitleaks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaebf3c
to
a4870b9
Compare
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
79673ae
to
b13e507
Compare
KraMorK
approved these changes
Oct 14, 2025
himax1991
requested changes
Oct 14, 2025
go_linter/action.yaml
Outdated
@@ -1,39 +1,122 @@ | |||
name: "Go linter" | |||
description: "Go linter" | |||
# gitleaks/action.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we are replacing go linter action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! That was definitely an accident. I’ve rebased to resolve the issue and cleaned up the branch.
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
…gurable Gitleaks version. Enhance README with optional config details and usage examples. Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
…ult limit note Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Switch diff mode to --no-git to avoid false positives from git history. Full mode remains unchanged for complete repository audits. Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Implement a new step to collect added and modified files in PRs, allowing for a more targeted scan of changes. The patch map is generated to filter findings based on added lines, improving the accuracy of results in diff mode. Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
Signed-off-by: Roman Trofimenkov <roman.trofimenkov@flant.com>
b13e507
to
bd12889
Compare
himax1991
approved these changes
Oct 15, 2025
Taior
approved these changes
Oct 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Added a reusable Gitleaks scanning GitHub Action that provides flexible secret scanning capabilities for Deckhouse CI workflows.
The action supports two operation modes and includes built-in logic for diff-based analysis, full repository scans, and post-processing of results.
Features
gitleaks.toml
if present in the repository; otherwise, runs with default Gitleaks rules.gitleaks.json
report as a workflow artifact.exit 1
), not on internal scan errors.Why do we need it, and what problem does it solve?
Previously, secret scanning logic was duplicated across workflows.
This modular Action consolidates all scanning functionality in one place, simplifying maintenance and ensuring consistent behavior across repositories.
It provides developers with fast feedback on possible secret leaks in pull requests and allows for deeper scans when required.
Why do we need it in the patch release (if we do)?
Not required.
This is an infrastructure and CI improvement that enhances security checks and can be delivered in a regular release.
Checklist
Changelog entries