docs: correct the credential statements in CLAUDE.md, CONTRIBUTING.md and the workflows
State that a same-repo pull request gets org secrets and that Gitea 28 refuses the job token for org packages. Rename image.yml's workflow to "Images" (cosmetic, no step changed) and update stale comments. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
32018e27f0
commit
24500e9eed
6 files changed
+22
-16
No files matched your search
@@ -1,4 +1,4 @@
|
||||
name: Molecule image
|
||||
name: Images
|
||||
|
||||
# Builds the images under images/ with kaniko (osscontainertools fork, v1.28.6) and
|
||||
# pushes them to git.rkdr.net/mortis/<name> (ADR 0004, Image distribution): the molecule
|
||||
@@ -18,10 +18,11 @@ name: Molecule image
|
||||
# to that entrypoint, not substituted. The pinned kaniko executor is therefore
|
||||
# downloaded by layer digest and verified with sha256sum.
|
||||
# - Credentials: the job token is tried first (permissions: packages: write). Gitea 28
|
||||
# probably refuses it for an organisation-owned package (the Actions user is not an
|
||||
# org member: services/context/package.go, TODO ActionUser permission check). Only if
|
||||
# a write probe is refused are the org secrets PACKAGE_PUSH_USER / PACKAGE_PUSH_TOKEN
|
||||
# used. The log names the method that worked, never a value.
|
||||
# refuses it for an organisation-owned package (HTTP 401 on a write probe, run 2237:
|
||||
# the Actions user is not an org member, services/context/package.go, TODO ActionUser
|
||||
# permission check). Only if a write probe is refused are the org secrets
|
||||
# PACKAGE_PUSH_USER / PACKAGE_PUSH_TOKEN used. The log names the method that worked,
|
||||
# never a value.
|
||||
# - Layers: every layer stays far below Cloudflare's 100 MB request-body limit (see the
|
||||
# Dockerfile). No kaniko cache: a tiny, rarely rebuilt image gains little, and cache
|
||||
# layers would be pushed through the same Cloudflare-limited path.
|
||||
@@ -107,8 +108,9 @@ jobs:
|
||||
# file difference under /usr, /lib, /bin, /sbin, /opt or /etc fails the job.
|
||||
# Names only, no sizes or modes, and /var/log, /run and dpkg's *-old files are
|
||||
# not compared: logs and dpkg state the install touched may end up in the first
|
||||
# layer as modified files. That is cosmetic; after the first push, list the
|
||||
# layers (crane export | tar t) and look for run/act, root/ and var/log/apt.
|
||||
# layer as modified files. That is cosmetic. Not yet checked: listing the layers
|
||||
# (crane export | tar t, looking for run/act, root/ and var/log/apt) needs a
|
||||
# read:package token, which the Claude token lacks.
|
||||
#
|
||||
# The pinned kaniko v1.28.6 image has index digest
|
||||
# sha256:2fa20b0a4b40c7db72b479d57e55c2cf79f2178533b2d3bcbd129d6bd3c087ed and
|
||||
|
||||
Reference in new issue
Block a user