Follow-up to #16, which repointed portal's CI image push from registry.meghsakha.com to Harbor (repo.meghsakha.com).
Cosign signing was not added in that PR: portal builds via docker/build-push-action, so there is no plain docker push <img>:latest line to append a cosign sign step to. Signing needs the pushed image digest (the build-push-action outputs.digest) wired into a dedicated cosign step.
Task
Give the build-push-action step an id (e.g. id: build)
Reuse the existing COSIGN_KEY / COSIGN_PASSWORD repo secrets (already set)
Keep it non-fatal (|| echo "::warning::cosign failed") to match the other 4 CI repos
Once done, portal joins certifai / compliance / breakpilot-* in producing signed images, enabling the Orca verified-pull policy (orca#147).
Follow-up to #16, which repointed portal's CI image push from `registry.meghsakha.com` to Harbor (`repo.meghsakha.com`).
Cosign signing was **not** added in that PR: portal builds via `docker/build-push-action`, so there is no plain `docker push <img>:latest` line to append a `cosign sign` step to. Signing needs the **pushed image digest** (the build-push-action `outputs.digest`) wired into a dedicated cosign step.
### Task
- [ ] Give the build-push-action step an `id` (e.g. `id: build`)
- [ ] Add a cosign step: `cosign sign --yes --key env://COSIGN_KEY repo.meghsakha.com/breakpilot/portal@${{ steps.build.outputs.digest }}`
- [ ] Reuse the existing `COSIGN_KEY` / `COSIGN_PASSWORD` repo secrets (already set)
- [ ] Keep it non-fatal (`|| echo "::warning::cosign failed"`) to match the other 4 CI repos
Once done, portal joins certifai / compliance / breakpilot-* in producing signed images, enabling the Orca verified-pull policy (orca#147).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to #16, which repointed portal's CI image push from
registry.meghsakha.comto Harbor (repo.meghsakha.com).Cosign signing was not added in that PR: portal builds via
docker/build-push-action, so there is no plaindocker push <img>:latestline to append acosign signstep to. Signing needs the pushed image digest (the build-push-actionoutputs.digest) wired into a dedicated cosign step.Task
id(e.g.id: build)cosign sign --yes --key env://COSIGN_KEY repo.meghsakha.com/breakpilot/portal@${{ steps.build.outputs.digest }}COSIGN_KEY/COSIGN_PASSWORDrepo secrets (already set)|| echo "::warning::cosign failed") to match the other 4 CI reposOnce done, portal joins certifai / compliance / breakpilot-* in producing signed images, enabling the Orca verified-pull policy (orca#147).