Skip to content

Rename pkg/kics to pkg/runner and keep path discovery in pkg/analyzer#175

Merged
whitemerch merged 2 commits into
mainfrom
chakib.hamie/rename_pkg_kics_to_service
Jun 3, 2026
Merged

Rename pkg/kics to pkg/runner and keep path discovery in pkg/analyzer#175
whitemerch merged 2 commits into
mainfrom
chakib.hamie/rename_pkg_kics_to_service

Conversation

@whitemerch

@whitemerch whitemerch commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Motivation

The legacy pkg/kics name does not describe the scan pipeline. Path discovery (platform detection, OpenAPI heuristics, Analyze) is separate from orchestrating parse + inspect work.

Layout

  • pkg/runner — scan pipeline (Service, sinks, PrepareScanDocument, etc.), package runner.
  • pkg/analyzer — path discovery only (Analyzer, Analyze, shared OpenAPI regexes for resolvers), package analyzer at the repo root (no nested paths package).

Imports: pkg/scan and pkg/scanner use runner for the pipeline; pkg/scan/utils.go and pkg/resolver/file use analyzer for path analysis helpers.

CI

Critical tests run ./pkg/runner and ./pkg/analyzer.

How to verify

go build ./...
go test -short ./pkg/runner/... ./pkg/analyzer/... ./pkg/scan/... ./pkg/scanner/...

Impact

Internal Go package layout only. No CLI or rule format changes.

@datadog-official

datadog-official Bot commented Jun 3, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 47.88% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: da3f23f | Docs | Datadog PR Page | Give us feedback!

@whitemerch
whitemerch force-pushed the chakib.hamie/rename_pkg_kics_to_service branch from 3319816 to 52a85df Compare June 3, 2026 11:38
@whitemerch whitemerch changed the title Rename pkg/kics to pkg/service Rename pkg/kics to pkg/analyzer and split path discovery into pkg/pathanalyzer Jun 3, 2026
@whitemerch
whitemerch marked this pull request as ready for review June 3, 2026 11:39
@whitemerch
whitemerch requested a review from a team as a code owner June 3, 2026 11:39
@whitemerch
whitemerch marked this pull request as draft June 3, 2026 11:40
@whitemerch whitemerch changed the title Rename pkg/kics to pkg/analyzer and split path discovery into pkg/pathanalyzer Rename pkg/kics to pkg/runner and keep path discovery in pkg/analyzer Jun 3, 2026
@whitemerch
whitemerch force-pushed the chakib.hamie/rename_pkg_kics_to_service branch from 60b9545 to 3dc7f9c Compare June 3, 2026 11:54
@whitemerch
whitemerch marked this pull request as ready for review June 3, 2026 11:58
NathanGallet-dd
NathanGallet-dd previously approved these changes Jun 3, 2026
@whitemerch
whitemerch force-pushed the chakib.hamie/rename_pkg_kics_to_service branch from 3dc7f9c to da3f23f Compare June 3, 2026 14:07
@whitemerch
whitemerch merged commit 207a51f into main Jun 3, 2026
18 checks passed
@whitemerch
whitemerch deleted the chakib.hamie/rename_pkg_kics_to_service branch June 3, 2026 15:08
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.

2 participants