Skip to content

Merge pull request #253 from CivicActions/MAHOME-1145-update-footer-b… #26

Merge pull request #253 from CivicActions/MAHOME-1145-update-footer-b…

Merge pull request #253 from CivicActions/MAHOME-1145-update-footer-b… #26

Workflow file for this run

name: Scan packages and upload SBOM
'on':
push:
branches:
- main
jobs:
upload_sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate SBOM using Syft
uses: anchore/[email protected]
with:
format: cyclonedx-json
artifact-name: sbom.json
- uses: actions/download-artifact@v3
with:
name: sbom.json
- name: Upload SBOM to DependencyTrack
run: |
curl -sS -X "POST" "https://dependencytrack.cicd.civicactions.net/api/v1/bom" \
-H "Content-Type: multipart/form-data" \
-H "X-Api-Key: ${{ secrets.DEPENDENCYTRACK_APIKEY }}" \
-F "projectName=CivicActions Homesite" \
-F "projectVersion=main" \
-F "[email protected]" > /dev/null
shell: bash