Skip to content

Commit 350275d

Browse files
authored
feat: enable sbom, provenance and cosign (#4)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the ability to sign Docker container images using Cosign. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 212923b commit 350275d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/branch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
with:
4444
fetch-depth: 2
4545

46+
- name: Install Cosign
47+
uses: sigstore/cosign-installer@v3
48+
4649
- name: Install Node.js
4750
uses: actions/setup-node@v4
4851
with:
@@ -114,3 +117,7 @@ jobs:
114117
- name: Build Docker container
115118
run: |
116119
pnpm run docker
120+
121+
- name: Cosign Docker container
122+
run: |
123+
pnpm run cosign

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"write-translations": "docusaurus write-translations",
1414
"write-heading-ids": "docusaurus write-heading-ids",
1515
"typecheck": "tsc",
16-
"docker": "bash -c \"docker buildx build . --platform=linux/amd64,linux/arm64 -t ghcr.io/settlemint/btp-docs:${VERSION:-7.0.0-dev.$(date +%s)} --push --progress=plain\""
16+
"docker": "bash -c \"docker buildx build . --provenance true --sbom true --platform=linux/amd64,linux/arm64 -t ghcr.io/settlemint/btp-docs:${VERSION:-7.0.0-dev.$(date +%s)} --push --progress=plain\"",
17+
"cosign": "cosign sign --yes ghcr.io/settlemint/btp-docs:${VERSION:-7.0.0-dev.$(date +%s)}"
1718
},
1819
"dependencies": {
1920
"@cmfcmf/docusaurus-search-local": "1.1.0",

0 commit comments

Comments
 (0)