Skip to content

Commit 4bacc35

Browse files
scan final plugin with fossa
1 parent ef5db56 commit 4bacc35

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
permissions:
1111
contents: read
1212
id-token: write # Required for PyPI Trusted Publishing
13+
checks: write # For FOSSA status checks
1314

1415
jobs:
1516
publish:
@@ -98,13 +99,29 @@ jobs:
9899
env:
99100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100101

102+
# Run FOSSA scan and tag with version for license tracking
103+
- name: FOSSA Scan - Publish
104+
uses: SolaceDev/solace-public-workflows/.github/actions/sca/sca-scan@main # main
105+
with:
106+
scanners: fossa
107+
fossa_api_key: ${{ secrets.FOSSA_API_KEY }}
108+
additional_scan_params: |
109+
fossa.branch=main
110+
fossa.revision=${{ steps.extract.outputs.version }}
111+
fossa.config=${{ steps.extract.outputs.path }}/.fossa.yml
112+
101113
- name: Create summary
102114
run: |
103115
echo "## 📦 Package Published Successfully" >> $GITHUB_STEP_SUMMARY
104116
echo "" >> $GITHUB_STEP_SUMMARY
105117
echo "**Package:** ${{ steps.extract.outputs.path }}" >> $GITHUB_STEP_SUMMARY
106118
echo "**Version:** ${{ steps.extract.outputs.version }}" >> $GITHUB_STEP_SUMMARY
107119
echo "**Tag:** ${{ github.event.release.tag_name }}" >> $GITHUB_STEP_SUMMARY
120+
echo "**FOSSA Revision:** ${{ steps.extract.outputs.version }}" >> $GITHUB_STEP_SUMMARY
121+
echo "" >> $GITHUB_STEP_SUMMARY
122+
echo "### Security Checks" >> $GITHUB_STEP_SUMMARY
123+
echo "- ✅ FOSSA Vulnerability Check passed" >> $GITHUB_STEP_SUMMARY
124+
echo "- ✅ FOSSA Licensing Check passed" >> $GITHUB_STEP_SUMMARY
108125
echo "" >> $GITHUB_STEP_SUMMARY
109126
echo "### Built artifacts:" >> $GITHUB_STEP_SUMMARY
110127
echo '```' >> $GITHUB_STEP_SUMMARY

.github/workflows/sync-plugin-configs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ name: Sync Plugin Configs
1414
on:
1515
pull_request:
1616
types: [opened, synchronize]
17+
branches:
18+
- main
1719
paths:
1820
# Trigger on any sam-* directory changes
1921
- "sam-*/**"

0 commit comments

Comments
 (0)