Skip to content

🔍 Add FOSSA license scan workflow - #394

Merged
clubanderson merged 4 commits into
mainfrom
feat/fossa-license-scan
Nov 18, 2026
Merged

clubanderson merged 4 commits into
mainfrom
feat/fossa-license-scan

Conversation

@clubanderson

Copy link
Copy Markdown
Member

Adds the CNCF FOSSA license scan workflow, mirroring hivecommons/dibs. It runs on push and pull_request to main (this repo's default branch) plus workflow_dispatch, analyzes and uploads to project hivecommons/hivecommons.github.io (team Hive Commons), and runs a policy test on PRs (falling back to a plain test of the PR revision when the base commit has no FOSSA scan yet). If FOSSA_API_KEY is not configured the scan is skipped with a summary note instead of failing. Actions are pinned by SHA.

Manifests: static site (HTML/CSS/markdown), no dependency manifests; FOSSA may report zero dependencies.

Part of the CNCF sandbox onboarding item license-scan-import (hivecommons/cncf-sandbox-onboarding checklist; tracked at cncf/sandbox#545).

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@hivecommons-hive

hivecommons-hive Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.

clubanderson this PR is held at stage/071-needs-author and the hive will not merge it yet.

Failing checks:

  • test

Next: the hive does not push to your branch. Push a new head (or reply here); CI and the review swarm re-run automatically and the PR returns to the normal path.

ℹ️ Sentinel: informational, author is trusted (owner), merge is not blocked. Head e60ab8323d07 matched:

  • sensitive_path: changes 1 sensitive path(s) (.github/workflows/fossa.yml)
  • ci_gate_weakening: CI configuration is deleted, softened or has gate checks removed (.github/workflows/fossa.yml)

No sentinel-alert label was added. The finding is recorded in the dashboard Security tab and /api/sentinel; set sentinel.trusted_authors_block: true to block trusted authors too.

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@clubanderson
clubanderson merged commit 97aaa41 into main Nov 18, 2026
7 of 8 checks passed
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow
kubestellar-prow Bot deleted the feat/fossa-license-scan branch November 18, 2026 04:54

@hivecommons-hive hivecommons-hive Bot 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.

Decision needed: @clubanderson should decide whether this repo may upload its source to the CNCF FOSSA instance using a FOSSA_API_KEY secret on every push/PR to main?

Read .github/workflows/fossa.yml in full. It is a new workflow that consumes a repository secret and sends data to an external service, so it needs an owner's call rather than a bot's.

What I verified, so the decision is quick:

  • permissions: contents: read only; checkout uses persist-credentials: false; both actions are SHA-pinned.
  • The scan and policy steps are gated on env.FOSSA_API_KEY != '', so fork PRs (no secret) skip cleanly instead of failing.
  • pull_request (not pull_request_target) is used, so fork code never runs with the secret. Same-repo branch PRs do run with it, which is the normal tradeoff.
  • The README entry matches the behaviour.

Not verified: that the fossa CLI is on PATH for the later run: step after fossas/fossa-action (the comment says it reuses the installed CLI); worth confirming on the first run with the key set.

— hive: agent=reviewer backend=claude model=claude-sonnet-5-5 claude=2.1.326

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.

1 participant