Repository navigation
feat(cli): add --config flag to dirctl import and simplify pipeline setup - #1715
Merged
Merged
Conversation
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
2 tasks done
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
paralta
marked this pull request as ready for review
June 29, 2026 12:01
Member
Author
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.
dirctl importpreviously required 10+ flags to configure the enricher, scanner, and record authors, making invocations hard to read and impossible to reproduce across environments. This PR introduces a--configflag that accepts a YAML file covering the full pipeline — enricher model and tool-host, scanner settings, authors, source type and URL — with CLI flags taking precedence so frequently-varied options (--filter,--limit,--dry-run,--output-dir) can still be supplied per-invocation without touching the file. As part of this, 9 flags are removed (--enrich-*,--scanner-*,--author) and the CI workflow is updated to generate the new YAML config at runtime instead of the previous JSON enricher template.applyFileConfigcopy function, replacingmapstructurereflection and custom name-matching logic; the mapping between YAML keys and Go fields is now visible in the type definitions.--authoris removed as a flag (config-file-only) since authors represent stable pipeline metadata rather than a per-run variable;--type,--url, and--file-pathare kept so the tool remains usable without a config file for quick one-liners.import.config.yamlis included in the repository as both documentation and a test fixture.