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
@@ -33,7 +33,7 @@ protection, or create tags: those are the operator's.
|
||||
|
||||
## Workflows (`.gitea/workflows/`)
|
||||
|
||||
- Never `pull_request_target`. No secrets on `pull_request`. Pass ref, repo and name values to
|
||||
- Never `pull_request_target`. A fork `pull_request` run gets no secrets and a read-only job token; a same-repo pull request does get the org Actions secrets, so nothing but `image.yml` may reference them. Pass ref, repo and name values to
|
||||
scripts through `env:`, never interpolate `${{ github.* }}` into a `run:` block.
|
||||
- Runner labels are `kamino-docker` and `kamino-molecule` only (`.gitea/actionlint.yaml`). Use
|
||||
the `github.*` contexts, which Gitea aliases; actionlint does not know `gitea.*`.
|
||||
@@ -55,5 +55,6 @@ protection, or create tags: those are the operator's.
|
||||
digest.
|
||||
- Each pushed layer must stay below 100 MB: Cloudflare rejects larger request bodies with
|
||||
HTTP 413. That is why the `ci` image deletes the Go toolchains from the hook cache.
|
||||
- The push credential is the org Actions secrets `PACKAGE_PUSH_USER` and `PACKAGE_PUSH_TOKEN`.
|
||||
Never print or use them anywhere else.
|
||||
- `image.yml` tries the job token first with a write probe; Gitea 28 refuses it for the org's packages
|
||||
(HTTP 401, run 2237), so the push uses the org Actions secrets `PACKAGE_PUSH_USER` and
|
||||
`PACKAGE_PUSH_TOKEN`. Never print or use them anywhere else.
|
||||
Reference in new issue
Block a user