Skip to content

Commit 577ed14

Browse files
committed
attest test
1 parent 92eae0b commit 577ed14

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ jobs:
9292
push-image:
9393
name: Docker Image Build
9494
runs-on: ubuntu-latest
95-
if: github.ref == 'refs/heads/master' && github.repository_owner == 'holo-routing'
95+
#if: github.ref == 'refs/heads/master' && github.repository_owner == 'holo-routing'
96+
permissions:
97+
id-token: write
98+
attestations: write
99+
#packages: write
96100
steps:
97101
- uses: actions/checkout@v4
98102
- uses: docker/login-action@v3
@@ -106,3 +110,13 @@ jobs:
106110
docker push ghcr.io/holo-routing/holod:latest
107111
docker build . -f docker/Dockerfile.holo-bundle --tag ghcr.io/holo-routing/holo-bundle:latest
108112
docker push ghcr.io/holo-routing/holo-bundle:latest
113+
- name: Attest holod image
114+
uses: actions/attest-build-provenance@v2
115+
with:
116+
subject-name: ghcr.io/holo-routing/holod:latest
117+
push-to-registry: true
118+
- name: Attest holo-bundle image
119+
uses: actions/attest-build-provenance@v2
120+
with:
121+
subject-name: ghcr.io/holo-routing/holo-bundle:latest
122+
push-to-registry: true

0 commit comments

Comments
 (0)