Repository navigation
🔍 Add FOSSA license scan workflow - #394
Conversation
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. clubanderson this PR is held at Failing checks:
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
No |
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
[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 DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
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: readonly; checkout usespersist-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(notpull_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
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 projecthivecommons/hivecommons.github.io(teamHive 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). IfFOSSA_API_KEYis 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).