Skip to content

Add ScanCode license scanning workflow#52

Merged
tbjers merged 1 commit into
mainfrom
add-scancode-license-scan
Jul 6, 2026
Merged

Add ScanCode license scanning workflow#52
tbjers merged 1 commit into
mainfrom
add-scancode-license-scan

Conversation

@tbjers

@tbjers tbjers commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

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.

Note: FOSSA had no footprint anywhere in the repo — no workflow, badge, or config — so nothing was stripped; this change is purely additive. If a FOSSA GitHub App is installed at the org/repo level, remove it in Settings → Integrations / GitHub Apps (not possible from the codebase).

Changes

  • .github/workflows/scancode.yml (new) — runs the scan_codebase pipeline on all pull requests and pushes to main (no path filters, so the badge stays current). Emits JSON/SPDX/CycloneDX SBOMs and enforces check-compliance at ERROR level. Actions are SHA-pinned with version comments, matching ci.yml.
  • policies.yml (new) — approves permissive licenses (MIT/Apache/BSD/ISC/etc.), denies copyleft (GPL/AGPL/LGPL) as error. Unlisted licenses fall through as missing, which does not fail at the ERROR level — 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/cli passes on the workflow YAML.
  • The License Scan check runs on this PR — confirm it completes green and produces the scancode-outputs artifact (SBOMs + license report) in the run summary.
  • The README badge renders no status until the first run on main lands after merge.

Notes

  • beta is 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

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>
@tbjers
tbjers merged commit f2bb30e into main Jul 6, 2026
3 of 7 checks passed
@tbjers
tbjers deleted the add-scancode-license-scan branch July 6, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant