Skip to content

ci(license): require only the SPDX license identifier - #6178

Merged
krishicks merged 1 commit into
mainfrom
ci/require-spdx-license-only/krishicks
Dec 3, 2026
Merged

krishicks merged 1 commit into
mainfrom
ci/require-spdx-license-only/krishicks

Conversation

@krishicks

@krishicks krishicks commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

OpenShell has been donated to the CNCF, so new files should no longer carry an NVIDIA copyright line. License Headers now runs the organization's shared spdx-check action. It requires only SPDX-License-Identifier: Apache-2.0 and fails if a PR removes an existing copyright notice. license:update no longer writes a copyright line.

This follows CNCF's copyright notice guidance: contributors keep their copyrights, CNCF "does not require or recommend that every contributor include their copyright notice in contributed files", and "you should not change or remove someone else's copyright notice unless they have expressly permitted you to do so."

Related Issue

No issue. The check required the NVIDIA SPDX-FileCopyrightText line in every source file, and license:update inserted it into every new file. Uses the action's base input from ai-openshell/workflows#4.

Changes

  • The License Headers job runs ai-openshell/workflows/spdx-check on the runner, with no CI container or mise. It passes the PR or merge-group base as base. Its include and exclude lists match the 1757 files scripts/update_license_headers.py checks.
  • scripts/update_license_headers.py, used by license:check and license:update, accepts a file with only the license identifier and inserts only that line, including into .license sidecars.
  • STYLEGUIDE.md, the docs frontmatter template, the update-docs skill, and AGENTS.md say not to add a copyright line to new files and not to remove existing ones.
  • Existing copyright lines are unchanged.

Testing

  • scripts/update_license_headers_test.py (6 tests), added to test:python-scripts
  • The action with these inputs passes on the whole tree, and fails on a deleted copyright line in crates/openshell-core/src/lib.rs
  • actionlint and ruff

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

@krishicks
krishicks requested a review from a team as a code owner December 2, 2026 21:46
@krishicks krishicks added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:compliance FIPS, regulatory alignment, auditability, and standardization requirements. labels Dec 2, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

@krishicks
krishicks force-pushed the ci/require-spdx-license-only/krishicks branch 3 times, most recently from bc59489 to 6ca3bfb Compare December 2, 2026 23:51
@krishicks
krishicks enabled auto-merge December 2, 2026 23:54
OpenShell has been donated to the CNCF, but the License Headers check
still failed any file without the NVIDIA SPDX-FileCopyrightText line, and
license:update wrote that line into every new file. CNCF guidance does
not require or recommend per-contributor copyright notices, and asks
that existing notices not be changed or removed without the holder's
permission:
https://github.com/cncf/foundation/blob/main/copyright-notices.md

CI now runs the organization's shared spdx-check action, which requires
only SPDX-License-Identifier: Apache-2.0 and, given the PR or merge-group
base, fails when a file loses a copyright notice its header had there.
license:check and license:update require and add only the license line.
The style guide, docs template, and agent instructions say not to add or
remove copyright lines.

Signed-off-by: Kris Hicks <khicks@nvidia.com>
@krishicks
krishicks force-pushed the ci/require-spdx-license-only/krishicks branch from 6ca3bfb to 08494a9 Compare December 3, 2026 00:41
@krishicks
krishicks added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit abaac33 Dec 3, 2026
90 checks passed
@krishicks
krishicks deleted the ci/require-spdx-license-only/krishicks branch December 3, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. state:accepted A maintainer decided OpenShell should pursue this issue topic:compliance FIPS, regulatory alignment, auditability, and standardization requirements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants