From 9be17d6655cba4eb7dec6b365b1c44527f44d1c4 Mon Sep 17 00:00:00 2001 From: Claude Code AI - Gitea MCP <3+claude@noreply.git.rkdr.net> Date: Sun, 25 Oct 2026 11:24:46 +0000 Subject: [PATCH] fix(image): stage only the sample files in the ci image's hook smoke test `git add -A` also staged the copied .pre-commit-config.yaml, so the yamllint smoke run linted it with the default rules (six lines over 80 characters) and, under set -eu, aborted the build before gitleaks and actionlint ran. pre-commit does not need its own config to be tracked. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- images/ci/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/ci/Dockerfile b/images/ci/Dockerfile index df42816..492d131 100644 --- a/images/ci/Dockerfile +++ b/images/ci/Dockerfile @@ -84,7 +84,7 @@ RUN set -eu; \ printf -- '---\nkey: value\n' > ok.yaml; \ printf -- 'self-hosted-runner:\n labels:\n - kamino-docker\n' > .gitea/actionlint.yaml; \ printf -- 'on: push\njobs:\n t:\n runs-on: kamino-docker\n steps:\n - run: echo ok\n' > .gitea/workflows/t.yml; \ - git add -A; \ + git add ok.yaml .gitea/actionlint.yaml .gitea/workflows/t.yml; \ smoke() { for h in yamllint gitleaks actionlint; do /opt/venv/bin/pre-commit run "$h" --all-files; done; }; \ smoke; \ rm -rf /opt/pre-commit/repo*/golangenv-*/.go /root/.cache/go-build; \ -- 2.43.0