feat(circle): add CircleCI scanner and improve debug progress logs#582
Open
feat(circle): add CircleCI scanner and improve debug progress logs#582
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds CircleCI support to Pipeleek by introducing a new CircleCI scanner implementation, CLI commands, and corresponding configuration + test coverage.
Changes:
- Introduce a CircleCI scanning engine (pipelines → workflows → jobs) with optional test/insight/artifact scanning.
- Add
pipeleek circle scancommand (and a dedicatedpipeleek-circlebinary) plus Makefile targets. - Add CircleCI configuration examples/docs and unit/e2e tests.
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/e2e/circle/scan/scan_test.go | New CircleCI e2e coverage using a recorded mock server. |
| pkg/circle/scan/transport.go | CircleCI API transport/client wrapper for v2 + selective v1 fallback endpoints. |
| pkg/circle/scan/transport_test.go | Unit tests for org discovery fallback + v1 discovery normalization/filtering. |
| pkg/circle/scan/scanner.go | Core CircleCI scanner orchestration + option initialization. |
| pkg/circle/scan/scanner_test.go | Unit tests for slug normalization and log flattening helpers. |
| pkg/circle/scan/normalize.go | Slug/VCS/org normalization and filter helpers for CircleCI. |
| internal/cmd/circle/scan/scan.go | Adds circle scan Cobra command and config binding. |
| internal/cmd/circle/scan/scan_test.go | Verifies Circle scan command wiring/flags. |
| internal/cmd/circle/circle.go | Adds CircleCI root command and registers scan subcommand. |
| internal/cmd/circle/circle_test.go | Verifies Circle root command structure. |
| internal/cmd/root.go | Registers CircleCI command group and root command. |
| cmd/pipeleek-circle/main.go | Adds dedicated CircleCI-only binary entrypoint. |
| pipeleek.example.yaml | Adds CircleCI configuration example stanza. |
| docs/introduction/configuration.md | Documents CircleCI configuration keys/flags. |
| Makefile | Adds build/test targets for CircleCI binary and e2e suite. |
| go.mod | Adds CircleCI client dependency (and resulting transitive updates). |
| go.sum | Updates checksums for new/updated dependencies. |
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.
No description provided.