-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1 KB
/
sbom.yml
File metadata and controls
44 lines (36 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: SBOM
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e ".[dev,redis,a2a]"
- name: Generate Python SBOM (CycloneDX)
run: |
pip install cyclonedx-bom
cyclonedx-py environment -o sbom-python.json --output-format json
- name: Generate container SBOM (Syft)
uses: anchore/sbom-action@v0
with:
image: airlock-gateway:latest
format: cyclonedx-json
output-file: sbom-container.json
continue-on-error: true
- name: Upload SBOMs to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: |
sbom-python.json
sbom-container.json