Skip to content

Commit 512e83d

Browse files
inkme9claude
andcommitted
chore: disable upstream CI, add SBOM workflow
- Disable ci.yml and verify-templating.yml (upstream CI, not needed) - Add sbom.yml: build image, generate CycloneDX SBOM (Syft), scan vulnerabilities (Grype), upload artifact Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2c7b4aa commit 512e83d

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/sbom.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: SBOM & Vulnerability Scan
2+
3+
on:
4+
push:
5+
branches: [master, fix/*]
6+
workflow_dispatch:
7+
8+
jobs:
9+
sbom:
10+
name: Generate SBOM and scan
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Build image
16+
run: |
17+
docker build -t postgres:local -f 18/alpine3.23/Dockerfile 18/alpine3.23/
18+
19+
- name: Generate SBOM (Syft)
20+
uses: anchore/sbom-action@v0
21+
with:
22+
image: postgres:local
23+
format: cyclonedx-json
24+
output-file: sbom.cdx.json
25+
26+
- name: Scan vulnerabilities (Grype)
27+
uses: anchore/scan-action@v6
28+
with:
29+
image: postgres:local
30+
fail-build: false
31+
output-format: table
32+
33+
- name: Upload SBOM
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: sbom-postgres
37+
path: sbom.cdx.json
38+
retention-days: 90
File renamed without changes.

0 commit comments

Comments
 (0)