From 308589e7f9da8ac4a4f5db8e6abe9efa7722ba53 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 21 Nov 2026 18:53:41 +0000 Subject: [PATCH] ci: name the single credential check in the image step and its log The step no longer chooses between credentials, so its name says it checks the push token, and the log records that the probe passed. The Dockerfile says why the smoke workflow sets `permissions: {}`. Refs #145 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG --- .gitea/workflows/image.yml | 3 ++- images/ci/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/image.yml b/.gitea/workflows/image.yml index a9175ad..3362465 100644 --- a/.gitea/workflows/image.yml +++ b/.gitea/workflows/image.yml @@ -135,7 +135,7 @@ jobs: # The credential: the org push token, checked by one write probe before the build. # Credentials reach commands only through the environment and curl's stdin # config, never the argument list or the log. Writes /kaniko/.docker/config.json. - - name: Prepare kaniko and select the registry credential + - name: Prepare kaniko and check the registry credential env: KANIKO_CA_LAYER_SHA256: 5ecab5922e6a5124fab96e8cb404b8cf93e8a96716af4fbbea2a9221b1216f86 KANIKO_EXECUTOR_LAYER_SHA256: 49c71aa9e7197af5dcf12811395f182f831c7e714ba94241908c955dd1649ca7 @@ -206,6 +206,7 @@ jobs: exit 1 fi write_config "$PAT_USER" "$PAT_TOKEN" + echo "Registry credential accepted: PACKAGE_PUSH_USER / PACKAGE_PUSH_TOKEN" # Gitea cannot make a tag immutable, so look the version tag up first: when it # exists the build must not move it (the build step reads this marker). diff --git a/images/ci/Dockerfile b/images/ci/Dockerfile index 7ee7b0b..5a09e81 100644 --- a/images/ci/Dockerfile +++ b/images/ci/Dockerfile @@ -118,7 +118,8 @@ RUN ANSIBLE_COLLECTIONS_PATH=/opt/collections \ # environments fit: with them the layer was about 103 MB compressed and the push of # ci 0.2.16 got a 413. The hooks below run on a staged sample before and after the # deletion: a cache that is incomplete (a missing environment would be rebuilt, which -# needs the network) or no longer works fails the image build, not the jobs. +# needs the network) or no longer works fails the image build, not the jobs. The sample +# workflow sets `permissions: {}` because zizmor flags a workflow that leaves them default. # # The last lines print the compressed size of each directory a later COPY turns into a # layer, which is what the 100 MB (95 MiB) limit applies to. These gzip -6 figures run