feat(controls): Add debug trace detection control#90
Merged
Joseph94m merged 2 commits intogetplumber:mainfrom Mar 3, 2026
Merged
feat(controls): Add debug trace detection control#90Joseph94m merged 2 commits intogetplumber:mainfrom
Joseph94m merged 2 commits intogetplumber:mainfrom
Conversation
Add a new control that detects CI/CD pipelines enabling CI_DEBUG_TRACE or CI_DEBUG_SERVICES in global or job-level variables. When enabled, these variables cause GitLab to print ALL environment variables in job logs, including masked secrets like CI_JOB_TOKEN. - Add controlGitlabPipelineDebugTrace with Run() and GetConf() - Add DebugTraceControlConfig in plumberconfig.go with schema validation - Add debug trace section to default .plumber.yaml - Integrate into analyze output, MR comments, and compliance calculation - Add comprehensive unit tests (10 tests, 14 sub-cases) Closes getplumber#86
b4b77d0 to
3cf4ec4
Compare
Collaborator
|
@stephrobert rebased and added the control report progress and count for this new control and updated the readme |
3cf4ec4 to
ac8fa66
Compare
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
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.
Add a new control that detects CI/CD pipelines enabling CI_DEBUG_TRACE or CI_DEBUG_SERVICES in global or job-level variables. When enabled, these variables cause GitLab to print ALL environment variables in job logs, including masked secrets like CI_JOB_TOKEN.
Closes #86