Repository navigation
ci: add license artifact check and release note addendum #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2b287ba
ci: add license artifact check and release note addendum
Iky969 bcffbbd
fix(license-check): hash matched artifacts and skip applet symlinks
Iky969 f251278
docs(release): mark v1.2.0 notes historical
Iky969 62dd2ba
fix(license-check): make glob matching explicit and validate config
Iky969 22de72c
fix(license-check): tighten first-party allowlist entries
Iky969 2efd3d8
fix(license-check): fail on scan errors and validate metadata
Iky969 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: license-check | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| license-artifacts: | ||
| name: License & provenance artifact check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
Iky969 marked this conversation as resolved.
Resolved
|
||
|
|
||
| - name: Install build dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential busybox-static python3 tar xz-utils curl | ||
|
|
||
| - name: Build base packages | ||
| run: make packages | ||
|
|
||
| - name: Check ELF artifacts against the license allowlist | ||
| run: | | ||
| python3 scripts/check-license-artifacts.py \ | ||
| --root packages \ | ||
| --root distro/packages \ | ||
| --allowlist licenses/allowlist.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Phase 4 archive note — history rewrite decision | ||
|
|
||
| Date: 2026-11-30. | ||
|
|
||
| The earlier suggestion was to run `git filter-repo` to remove BusyBox and | ||
| kernel binaries from all history, followed by force-push of all branches and | ||
| tags. | ||
|
|
||
| Decision: **do not execute that rewrite.** This file is the only record of | ||
| that decision. | ||
|
|
||
| Reasons: | ||
|
|
||
| - The complete corresponding sources are already published in the permanent | ||
| `v1.2.1-source` GitHub Release, so the GPL obligations do not depend on | ||
| deleting historical binaries. | ||
| - Rewriting published history would invalidate PR heads, release tags, and | ||
| existing forks/clones, and would require regenerating release assets and | ||
| tags. | ||
| - Force-pushing all branches and tags is a destructive operation that should | ||
| never be performed as a reflex to a license audit. | ||
| - Keeping this note preserves the rationale without pretending the rewrite was | ||
| ever carried out. | ||
|
|
||
| If a future maintainer still wants to shrink history, it must be a separate, | ||
| explicitly approved migration after the source releases are final and a full | ||
| backup exists. This note does not authorize that operation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| [ | ||
| { | ||
| "path": "packages/ninit/x/sbin/init", | ||
| "component": "ninit", | ||
| "license": "MIT", | ||
| "source_ref": "ninit.c and scripts/ in this repository", | ||
| "first_party": true | ||
| }, | ||
| { | ||
| "path": "packages/busybox/x/**", | ||
|
Iky969 marked this conversation as resolved.
Resolved
|
||
| "match": "glob", | ||
| "component": "BusyBox (Ubuntu build)", | ||
| "license": "GPL-2.0-only", | ||
| "source_ref": "busybox-ubuntu-1.37.0-7ubuntu1-source.tar.gz in v1.2.1-source", | ||
| "sha256": "8d4e5a13ce30fb66fa7156a25f738e690b1dfc4823774dfab5a0f1fd7fed48f7" | ||
| }, | ||
| { | ||
| "path": "packages/kernel/x/boot/vmlinuz-virt", | ||
| "component": "Linux kernel 6.6.134 virt flavor", | ||
| "license": "GPL-2.0-only", | ||
| "source_ref": "linux-6.6.134-sane-source.tar.gz in v1.2.1-source", | ||
| "sha256": "be523954ad673a78c9cdfd3d473a8d39609f5901adfcc68402c67dc037a64c7e" | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| }, | ||
| { | ||
| "path": "packages/kernel/x/lib/modules/**/*.ko", | ||
| "match": "glob", | ||
| "component": "Linux kernel modules 6.6.134", | ||
| "license": "GPL-2.0-only", | ||
| "source_ref": "linux-6.6.134-sane-source.tar.gz in v1.2.1-source" | ||
| }, | ||
| { | ||
| "path": "packages/disk-tools/x/usr/sbin/mkfs.fat", | ||
| "component": "dosfstools", | ||
| "license": "GPL-3.0-only", | ||
| "source_ref": "dosfstools-ubuntu-4.2-1.2build1-source.tar.gz in v1.2.1-source", | ||
| "sha256": "3bded05c428857023571416308f0ecf0fce2f9d44f0e5b7ec3b371c1350f45a4" | ||
| }, | ||
| { | ||
| "path": "packages/disk-tools/x/usr/sbin/sgdisk", | ||
| "component": "gptfdisk", | ||
| "license": "GPL-2.0-only", | ||
| "source_ref": "https://sourceforge.net/projects/gptfdisk/" | ||
| }, | ||
| { | ||
| "path": "packages/disk-tools/x/usr/sbin/mke2fs", | ||
| "component": "e2fsprogs", | ||
| "license": "GPL-2.0-only", | ||
| "source_ref": "https://e2fsprogs.sourceforge.net/" | ||
| }, | ||
| { | ||
| "path": "packages/curl/x/usr/bin/curl", | ||
| "component": "curl", | ||
| "license": "curl license (MIT/X derivative)", | ||
| "source_ref": "licenses/curl.txt and curl 8.11.0 upstream" | ||
| }, | ||
| { | ||
| "path": "packages/doas/x/usr/bin/doas", | ||
| "component": "OpenDoas", | ||
| "license": "ISC", | ||
| "source_ref": "https://github.com/Duncaen/OpenDoas/releases/download/v6.8.2/opendoas-6.8.2.tar.gz" | ||
| }, | ||
| { | ||
| "path": "packages/libressl/x/usr/bin/openssl", | ||
| "component": "LibreSSL", | ||
| "license": "ISC (includes OpenSSL-derived code)", | ||
| "source_ref": "https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz" | ||
| }, | ||
| { | ||
| "path": "packages/libressl/x/usr/bin/ocspcheck", | ||
| "component": "LibreSSL", | ||
| "license": "ISC (includes OpenSSL-derived code)", | ||
| "source_ref": "https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz" | ||
| }, | ||
| { | ||
| "path": "packages/limine-static/x/usr/bin/limine", | ||
| "component": "Limine bootloader", | ||
| "license": "BSD-2-Clause", | ||
| "source_ref": "https://github.com/Limine-Bootloader/Limine/releases/download/v12.9.6/limine-binary.tar.xz" | ||
| }, | ||
| { | ||
| "path": "packages/wpa-supplicant/x/usr/bin/wpa_supplicant", | ||
| "component": "wpa_supplicant", | ||
| "license": "BSD-3-Clause (GPL-2.0 alternative)", | ||
| "source_ref": "https://w1.fi/releases/wpa_supplicant-2.10.tar.gz" | ||
| }, | ||
| { | ||
| "path": "packages/wpa-supplicant/x/usr/bin/wpa_cli", | ||
| "component": "wpa_supplicant", | ||
| "license": "BSD-3-Clause (GPL-2.0 alternative)", | ||
| "source_ref": "https://w1.fi/releases/wpa_supplicant-2.10.tar.gz" | ||
| }, | ||
| { | ||
| "path": "packages/musl/x/usr/lib/libc.so", | ||
| "component": "musl libc", | ||
| "license": "MIT", | ||
| "source_ref": "https://musl.libc.org/releases/musl-1.2.5.tar.gz" | ||
| }, | ||
| { | ||
| "path": "packages/musl/x/lib/ld-musl-*.so.*", | ||
|
Iky969 marked this conversation as resolved.
Resolved
|
||
| "match": "glob", | ||
| "component": "musl libc dynamic loader", | ||
| "license": "MIT", | ||
| "source_ref": "https://musl.libc.org/releases/musl-1.2.5.tar.gz" | ||
| }, | ||
| { | ||
| "path": "packages/musl/x/usr/lib/*.o", | ||
|
Iky969 marked this conversation as resolved.
Resolved
|
||
| "match": "glob", | ||
| "component": "musl libc startup objects", | ||
| "license": "MIT", | ||
| "source_ref": "https://musl.libc.org/releases/musl-1.2.5.tar.gz" | ||
| } | ||
| ] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.