From 0e793338025d9fc7f7826cfe656389d430e34ead Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 14 Oct 2026 20:17:09 +0200 Subject: [PATCH] Strip sha256 hash --- .gitea/workflows/deploy.yml | 2 -- test.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 86fdf48..920ab4c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,8 +19,6 @@ jobs: - name: Install kubectl run: | curl -fsSL -o "${RUNNER_TEMP}/kubectl" "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" - curl -fsSL -o "${RUNNER_TEMP}/kubectl.sha256" "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256" - printf '%s %s\n' "$(cat "${RUNNER_TEMP}/kubectl.sha256")" "${RUNNER_TEMP}/kubectl" | sha256sum -c chmod 0700 "${RUNNER_TEMP}/kubectl" - name: Configure Kubernetes access env: diff --git a/test.sh b/test.sh index bbdf793..db60baa 100755 --- a/test.sh +++ b/test.sh @@ -6,7 +6,7 @@ bash -n "$dir/create-ci-kubeconfig.sh" "$dir/test.sh" grep -Fq 'namespace: kube-system' "$dir/coredns-scheduling-patch.yaml" grep -Fq 'odroid-h3' "$dir/coredns-scheduling-patch.yaml" grep -Fq 'requiredDuringSchedulingIgnoredDuringExecution' "$dir/coredns-scheduling-patch.yaml" -image=ghcr.io/yannh/kubeconform:v0.7.0@sha256:85dbef6b4b312b99133decc9c6fc9495e9fc5f92293d4ff3b7e1b30f5611823c +image=ghcr.io/yannh/kubeconform:v0.7.0 docker run --rm -i "$image" -strict -exit-on-error -summary < "$dir/coredns-pdb.yaml" docker run --rm -i "$image" -strict -exit-on-error -summary < "$dir/ci-deployer.yaml" echo 'CoreDNS scheduling manifests and least-privilege CI resources are valid.'