-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (37 loc) · 960 Bytes
/
taos-ws-py-sbom.yml
File metadata and controls
41 lines (37 loc) · 960 Bytes
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
name: taos-ws-py-sbom
on:
pull_request:
branches:
- "main"
- "3.0"
paths:
- "taos-ws-py/**"
- ".github/workflows/taos-ws-py*.yml"
release:
types:
- published
jobs:
sbom:
name: Generate and Scan SBOM
if: github.event_name != 'release' || startsWith(github.event.release.tag_name, 'taos-ws-py-')
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
env:
SBOM_FILENAME: "taos-ws-py-sbom.cdx.json"
steps:
- uses: actions/checkout@v6
- name: Create SBOM
uses: anchore/sbom-action@v0
with:
path: ./taos-ws-py/
format: cyclonedx-json
output-file: "${{ env.SBOM_FILENAME }}"
artifact-name: "${{ env.SBOM_FILENAME }}"
- name: Scan SBOM
uses: anchore/scan-action@v7
with:
sbom: "${{ env.SBOM_FILENAME }}"
cache-db: true
output-format: "table"