Skip to content

ci: add check for license/copyright headers on code files #1402

Queued
psschwei wants to merge 2 commits into
generative-computing:mainfrom
psschwei:license-check
Queued

ci: add check for license/copyright headers on code files #1402
psschwei wants to merge 2 commits into
generative-computing:mainfrom
psschwei:license-check

Conversation

@psschwei

@psschwei psschwei commented Jul 16, 2026

Copy link
Copy Markdown
Member

Pull Request

Issue

Companion to #1401
Fixes #1407

Description

Adds an additional check to quality.yml to ensure that code files have SPDX license/copyright headers (as per OSPO recommendation)

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code was added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

Attribution

  • AI coding assistants used

Adding a new component, requirement, sampling strategy, or tool?

If your PR adds or modifies one of the types below, check the matching box. A checklist of type-specific review items will be posted as a comment.

  • Component
  • Requirement
  • Sampling Strategy
  • Tool

NOTE: Please ensure you have an issue that has been acknowledged by a core contributor and routed you to open a pull request against this repository. Otherwise, please open an issue before continuing with this pull request.

@psschwei
psschwei requested a review from a team as a code owner July 16, 2026 13:49
@psschwei psschwei self-assigned this Jul 16, 2026

@AngeloDanducci AngeloDanducci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM but will wait to approve until #1401 merges

@psschwei

Copy link
Copy Markdown
Member Author
image

On the plus side, the check is working as expected...

@markstur markstur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

very tempting to suggest an existing tool, but I think we'll be happier with this one. Last one I used required go.

LGTM

@AngeloDanducci AngeloDanducci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pre-req finished merge queue.

@markstur markstur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need to fix more files so it passes its own check again, but once that is fixed and passing merge it FAST

@AngeloDanducci

Copy link
Copy Markdown
Contributor

Think it just needs to be rebased, the check fails exactly as many files as were merged in the required preceding PR. There are just no conflicts so no warning about it.

@psschwei psschwei closed this Jul 17, 2026
@psschwei psschwei reopened this Jul 17, 2026
Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
@psschwei
psschwei added this pull request to the merge queue Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add spdx license / copyright headers to the appropriate files

3 participants