Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Conversation

@bwarden
Copy link
Contributor

@bwarden bwarden commented Jun 4, 2025

No description provided.

@bwarden bwarden requested a review from Copilot June 4, 2025 22:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR extends the license scanning functionality to explicitly detect the "Intel Simplified Software License".

  • Added regex support for files named with the Intel license pattern
  • Maintains existing patterns for copying and other licenses

# look for files that start with copying or licen[cs]e (but are
# not likely scripts) or end with licen[cs]e
target_pat = re.compile(r"^((copying)|(licen[cs]e)|(e[dp]l-v\d+))|(licen[cs]e)(\.(txt|xml))?$")
target_pat = re.compile(r"^((copying)|(licen[cs]e)|(e[dp]l-v\d+))|(licen[cs]e)(\.(txt|xml))?|(intel simplified software license.*\.txt)$")
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

The new regex pattern for detecting the Intel Simplified Software License may be too permissive. Consider refining the pattern or adding tests to ensure it does not produce false positives.

Suggested change
target_pat = re.compile(r"^((copying)|(licen[cs]e)|(e[dp]l-v\d+))|(licen[cs]e)(\.(txt|xml))?|(intel simplified software license.*\.txt)$")
target_pat = re.compile(r"^((copying)|(licen[cs]e)|(e[dp]l-v\d+))|(licen[cs]e)(\.(txt|xml))?|(intel simplified software license(\s*[a-zA-Z0-9_-]*)?\.txt)$")

Copilot uses AI. Check for mistakes.
@bwarden bwarden requested a review from bryteise June 4, 2025 22:04
@bwarden
Copy link
Contributor Author

bwarden commented Jun 4, 2025

Example:
.../core/resources/amcfw/Intel Simplified Software License August 2021_Final_08.20.21_v2.txt

@bwarden bwarden merged commit cd8d006 into clearlinux:master Jun 4, 2025
2 checks passed
@bwarden bwarden deleted the detect-intel-simplified-software-license branch June 4, 2025 22:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants