Add ScanCode license scanning workflow#52
Merged
Conversation
Introduces a standalone License Scan workflow using aboutcode-org/scancode-action, replacing the intended FOSSA integration. Runs on all pull requests and pushes to main, scanning the codebase and enforcing a license policy (check-compliance at ERROR level) backed by policies.yml. - .github/workflows/scancode.yml: scan_codebase pipeline emitting JSON/SPDX/CycloneDX SBOMs; actions SHA-pinned per repo convention. - policies.yml: approves permissive (MIT/Apache/BSD/ISC) licenses, denies copyleft (GPL/AGPL/LGPL) as error. - README.md: adds the built-in GitHub Actions status badge. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds a self-contained License Scan workflow using
aboutcode-org/scancode-action, surfaced through the built-in GitHub Actions status badge. This is the intended FOSSA replacement.Changes
.github/workflows/scancode.yml(new) — runs thescan_codebasepipeline on all pull requests and pushes tomain(no path filters, so the badge stays current). Emits JSON/SPDX/CycloneDX SBOMs and enforcescheck-complianceatERRORlevel. Actions are SHA-pinned with version comments, matchingci.yml.policies.yml(new) — approves permissive licenses (MIT/Apache/BSD/ISC/etc.), denies copyleft (GPL/AGPL/LGPL) aserror. Unlisted licenses fall through asmissing, which does not fail at theERRORlevel — this avoids false failures from vendored/bundled code (e.g. the committed.github/actions/report/dist/Octokit bundle) while hard-blocking incompatible licenses.README.md— adds the native GitHub Actions status badge for the new workflow.Verification
@action-validator/clipasses on the workflow YAML.License Scancheck runs on this PR — confirm it completes green and produces thescancode-outputsartifact (SBOMs + license report) in the run summary.no statusuntil the first run onmainlands after merge.Notes
betais a mutable tag; the action is pinned to its current SHA (e46d127) to freeze behavior. Revisit when scancode-action cuts a newer stable release.🤖 Generated with Claude Code