Skip to content

Commit d392e2f

Browse files
committed
ci: add SBOM and security scan workflow (WF-6)
1 parent 3b64418 commit d392e2f

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/sbom.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SBOM & Security Scan - Calls Org-Level Reusable Workflow
2+
# This is a lightweight caller workflow that invokes the organization's
3+
# shared SBOM generation and security scanning workflow.
4+
#
5+
# Features:
6+
# - CycloneDX SBOM generation
7+
# - Trivy vulnerability scanning
8+
# - License compliance checking
9+
# - SARIF upload to GitHub Security tab
10+
name: SBOM & Security Scan
11+
12+
on:
13+
pull_request:
14+
paths:
15+
- "pyproject.toml"
16+
- "uv.lock"
17+
- ".github/workflows/sbom.yml"
18+
push:
19+
branches:
20+
- main
21+
- master
22+
- develop
23+
paths:
24+
- "pyproject.toml"
25+
- "uv.lock"
26+
schedule:
27+
# Weekly scan every Monday at 8:00 AM UTC
28+
- cron: "0 8 * * 1"
29+
workflow_dispatch:
30+
31+
permissions:
32+
contents: read
33+
security-events: write
34+
35+
jobs:
36+
sbom:
37+
name: SBOM & Security
38+
uses: ByronWilliamsCPA/.github/.github/workflows/python-sbom.yml@c22009ccaab0d3234819d30d9d7a03d53c531cb9 # main
39+
with:
40+
python-version: '3.12'
41+
fail-on-vulnerabilities: true
42+
severity-threshold: 'CRITICAL,HIGH'
43+
artifact-retention-days: 90
44+
fail-on-forbidden-licenses: false

0 commit comments

Comments
 (0)