Skip to content

Commit 84c7e7f

Browse files
jkhelilcursoragent
authored andcommitted
ci(e2e): fix ko >=v0.19 SBOM push failure on plain-HTTP registry
ko v0.19 unconditionally attempts HTTPS when writing SBOMs, causing the E2E job to fail with "http: server gave HTTP response to HTTPS client" against the plain-HTTP KinD registry (registry.local:5000). Set KO_FLAGS=--insecure-registry in the e2e-matrix env block so that both image pushes and SBOM writes use plain HTTP for the local registry. The flag is already forwarded to `ko apply` via $(KO_FLAGS) in the Makefile apply target, so no Makefile change is needed. Signed-off-by: Jawed khelil <jkhelil@redhat.com> Assisted-by: Claude Sonnet 4.6 (via Cursor) Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8ef8dd0 commit 84c7e7f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/e2e-matrix.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
k8s-version: v1.34.x
3030
env:
3131
KO_DOCKER_REPO: registry.local:5000/tekton
32+
# registry.local:5000 is a plain-HTTP KinD registry; tell ko to skip TLS
33+
# so that both image pushes and SBOM writes (ko >=v0.19) use plain HTTP.
34+
KO_FLAGS: --insecure-registry
3235
CLUSTER_DOMAIN: c${{ github.run_id }}.local
3336
ARTIFACTS: ${{ github.workspace }}/artifacts
3437

0 commit comments

Comments
 (0)