Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/.fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 3

project:
locator: solaceservices_client-cli
id: solaceservices_client-cli
name: client-cli
teams: []
labels:
- java

vendoredDependencies:
forceRescans: false
scanMethod: CLILicenseScan
licenseScanPathFilters:
exclude:
- "./.git"
- "./.github"

paths:
exclude:
- ./.git
- ./.github

telemetry:
scope: full
8 changes: 8 additions & 0 deletions .github/workflow-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sca_scanning": {
"fossa": {
"policy": { "mode": "REPORT" },
"vulnerability": { "mode": "REPORT" }
}
}
}
54 changes: 54 additions & 0 deletions .github/workflows/sca-scan-and-guard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: SCA Scan
on:
pull_request:
branches: [master]
push:
branches: [master]
# Allows the scan to be re-run against trunk without waiting for a push, which
# matters when a merge commit carries [skip ci] and produces no run at all.
workflow_dispatch:

permissions:
contents: read
id-token: write
# Required by the shared SCA workflow, which declares it. A called workflow
# cannot be granted a permission the caller lacks, so removing this fails the
# whole run at startup with zero jobs and no annotation.
packages: read
actions: read
statuses: write
checks: write
pull-requests: write

jobs:
sca_scan:
uses: SolaceDev/solace-public-workflows/.github/workflows/sca-scan-and-guard.yaml@main
with:
additional_scan_params: |
fossa.config=.github/.fossa.yml
java_version: "21"
setup_actions: '["setup-java"]'
secrets:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

# The reusable workflow owns the default-branch check, so a pull request run
# scans without writing and a run on trunk writes. squad is prof-services:
# this repo is in the Professional Services inventory, and "cto" would route
# its findings into the wrong collection and file Jiras in the wrong project.
update_manifest:
needs: sca_scan
if: needs.sca_scan.result == 'success'
uses: SolaceDev/solace-public-workflows/.github/workflows/update-manifest.yaml@main
with:
table_name: solace-cloud-manifest
item: |
{
"squad": "prof-services",
"repository": "${{ github.event.repository.name }}",
"dev": {
"sha": "${{ github.sha }}",
"version": "${{ github.ref_name }}"
}
}
secrets:
MANIFEST_AWS_ROLE: ${{ secrets.MANIFEST_AWS_ROLE }}
Loading