Skip to content

Fixed scancode-config.yml loading - #2325

Open
kg290 wants to merge 1 commit into
aboutcode-org:mainfrom
kg290:fix/2290-archive-config-discovery
Open

kg290 wants to merge 1 commit into
aboutcode-org:mainfrom
kg290:fix/2290-archive-config-discovery

Conversation

@kg290

@kg290 kg290 commented Nov 12, 2026 •

Copy link
Copy Markdown

Issues

Changes

Fixed scancode-config.yml loading so it works with both flat ZIPs and ZIPs containing a single enclosing folder, while keeping explicit-input priority, ambiguity warnings, and policy-file discovery unchanged.

Added regression tests covering both pipelines, nested configs, priority, and ambiguity. Warnings for unused configs are left out of this change.

AI disclosure: I used OpenAI Codex to help with the implementation and tests.

Checklist

  • I have read the contributing guidelines
  • I have linked an existing issue above
  • I have added unit tests covering the new code
  • I have reviewed and understood every line of this PR

Signed-off-by: kg290 <210736705+kg290@users.noreply.github.com>
@kg290
kg290 marked this pull request as ready for review November 12, 2026 14:00
Copilot AI balanced review requested due to automatic review settings November 12, 2026 14:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
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.

scancode-config.yml in an input archive is detected differently by scan_codebase and scan_single_package

2 participants