Skip to content

Add FOSSA SCA scanning and dependency manifest registration [skip ci] - #102

Open
AmanRiat1 wants to merge 2 commits into
masterfrom
add-fossa-sca-scanning
Open

AmanRiat1 wants to merge 2 commits into
masterfrom
add-fossa-sca-scanning

Conversation

@AmanRiat1

Copy link
Copy Markdown

Adds FOSSA SCA scanning on master plus a build-manifest registration step, so this repo is covered by our automated dependency vulnerability tracking.

What this adds

File Purpose
.fossa.yml FOSSA project config
.github/workflow-config.json FOSSA policy/vulnerability both in REPORT mode — this gates nothing
.github/workflows/sca-scan-and-guard.yml Scan on PR + push to master; manifest write on push only

Non-blocking by design

REPORT mode means FOSSA findings are recorded, not enforced. This PR cannot start failing anyone else's builds.

The update_manifest job is guarded on github.event_name == 'push' && github.ref_name == github.event.repository.default_branch, so it does not run on pull requests — only the scan does.

Pattern notes

Mirrors the equivalent setup already merged and passing across our other public repos. One thing carried over deliberately: no scan matrix. fossa.only_path scopes what is scanned, but the project id comes from --project, so matrix entries all upload into one project and overwrite each other, while the manifest emits one row per entry — producing registrations that point at FOSSA projects which never exist. A root scan resolves every ecosystem in one pass. One repo, one FOSSA project, one manifest row.

AmanRiat1 and others added 2 commits September 1, 2026 18:16
Adds a single root FOSSA scan (no matrix -- one repo, one FOSSA project, one
manifest row) plus a manifest write guarded to push-on-default-branch, so pull
request runs scan without writing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…p ci]

This repo publishes an artifact on push to its default branch, so merging the
onboarding change would also cut a release. Adding workflow_dispatch means the
merge can carry a skip-ci commit -- which suppresses every workflow on that
push, the publish one included -- and the scan plus manifest write can then be
run by hand against the default branch.

The update_manifest guard previously required github.event_name == 'push', so a
dispatched run would have scanned and silently skipped the write. It now accepts
either event while keeping the default-branch check, so dispatching against any
other ref still scans without writing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@AmanRiat1 AmanRiat1 changed the title Add FOSSA SCA scanning and dependency manifest registration Add FOSSA SCA scanning and dependency manifest registration [skip ci] Sep 3, 2026
sca_scan:
uses: SolaceDev/solace-public-workflows/.github/workflows/sca-scan-and-guard.yaml@main
with:
setup_actions: '["setup-node"]'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setup_actions: '["setup-node"]'
setup_actions: '["setup-node"]'
node_version: "24"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# commit (which suppresses every workflow on that push, including the
# release/publish one) and then have the scan and manifest write triggered
# by hand. The default-branch check still applies, so dispatching against
# any other ref scans without writing.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please simplify comment, for example like this:

    # Update the manifest only on master-branch pushes or manual runs, never PRs.
    # Manual runs allow scanning and updating after [skip ci] without releasing.

packages: read
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
uses: aws-actions/configure-aws-credentials@v6

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
with:
role-to-assume: ${{ secrets.MANIFEST_AWS_ROLE }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the secret MANIFEST_AWS_ROLE in the repository settings?


jobs:
sca_scan:
uses: SolaceDev/solace-public-workflows/.github/workflows/sca-scan-and-guard.yaml@main

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two failures: FOSSA Vulnerability Check and FOSSA Policy/Licensing Check

We cannot access the SCA Scan Results mentioned here:
https://github.com/solacecommunity/angular-solace-message-client/actions/runs/33565503264

https://app.fossa.com/projects/custom%2B48578%2Fsolacecommunity_angular-solace-message-client/refs/branch/PR/add-fossa-sca-scanning%0A

Image

Can you login and see the problems?

Out maintainer team also needs access so that we can fix any potential vulnerabilities and violations. Can you authorize us?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, squash both commits into a single one according to the Contributing guidelines. Commit message:

ci: add FOSSA SCA scanning and dependency manifest registration

Comment thread .fossa.yml
- "./.git"
- "./.github"

paths:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please ensure that only path dist/@solace-community is scanned? This is the effective lib which is pushed in npm. The test project should not be scanned and should not report any false positives, since it is not used in any production code.

@k-genov

k-genov commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Hi @AmanRiat1,

Thanks for your contribution and the PR! Could you review and apply my suggestion?

If you have any questions, please let me know.

Cheers,
Konstantin

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.

2 participants