Skip to content

Commit d7e39db

Browse files
test sbom
1 parent de6daf4 commit d7e39db

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Generate SBOM"
2+
on:
3+
push:
4+
branches: [test-sbom]
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
jobs:
8+
generate-sbom:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- uses: anchore/sbom-action@v0
13+
with:
14+
path: ./
15+
format: cyclonedx-json
16+
artifact-name: sbom-repo.cdx.json
17+
- uses: anchore/sbom-action@v0
18+
with:
19+
image: my-registry.com/my/awesome/image
20+
registry-username: ${{ secrets.REGISTRY_USERNAME }}
21+
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
22+
format: cyclonedx-json
23+
artifact-name: sbom-image.cdx.json

0 commit comments

Comments
 (0)