fix: check out with actions/checkout, publish with a package token, mkosi -f genkey #2

Merged
Job79 merged 9 commits from fix-ci-and-test-key into main 2026-11-23 18:33:22 +00:00
Owner
  • Checkout: gitea-runner 6.0.0 removed builtin:checkout (runner#1407), so 6.x rejects it as an invalid action. The workflow now uses actions/checkout@v7, which runs on the Node.js 26 in the runneros job image. It asks for contents: read and packages: write.

  • Local test key: mkosi genkey refuses to run while mkosi.crt exists, so the documented local build failed. The docs now use mkosi -f genkey, which replaces mkosi.crt for local tests. Don't commit that.

  • Publish: Gitea gives the job token at most read access to a user's packages (determineAccessMode in services/context/package.go), so every upload got 401. Publish now uses a PACKAGE_TOKEN secret, a token with only write:package. It is set on this repository. The permissions: block is gone, since it never helped.

  • New keys: new Secure Boot (mkosi.crt) and update signing (import-pubring.pgp) keys. Their private halves are this repository's SECUREBOOT_KEY and SIGNING_KEY secrets. The old signing key was a copy of runneros's ("git-runner updates"). VMs installed with the old keys need a reinstall to take updates.

🤖 Generated with Claude Code

- **Checkout:** gitea-runner 6.0.0 removed `builtin:checkout` ([runner#1407](https://gitea.com/gitea/runner/pulls/1407)), so 6.x rejects it as an invalid action. The workflow now uses `actions/checkout@v7`, which runs on the Node.js 26 in the runneros job image. It asks for `contents: read` and `packages: write`. - **Local test key:** `mkosi genkey` refuses to run while `mkosi.crt` exists, so the documented local build failed. The docs now use `mkosi -f genkey`, which replaces `mkosi.crt` for local tests. Don't commit that. - **Publish:** Gitea gives the job token at most read access to a user's packages (`determineAccessMode` in `services/context/package.go`), so every upload got 401. Publish now uses a `PACKAGE_TOKEN` secret, a token with only `write:package`. It is set on this repository. The `permissions:` block is gone, since it never helped. - **New keys:** new Secure Boot (`mkosi.crt`) and update signing (`import-pubring.pgp`) keys. Their private halves are this repository's `SECUREBOOT_KEY` and `SIGNING_KEY` secrets. The old signing key was a copy of runneros's ("git-runner updates"). VMs installed with the old keys need a reinstall to take updates. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Job79 added 1 commit 2026-11-22 16:07:55 +00:00
gitea-runner 6 has no builtin:checkout, and plain Fedora has no Node.js
for actions/checkout, so the workflow fetches the commit with git.
Setting permissions: keeps read access for that and asks for package
writes.

mkosi genkey won't replace mkosi.crt, so the docs now sign local builds
with a test key in mkosi.local.conf, which also covers the PCR and
verity keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Job79 added 1 commit 2026-11-22 17:01:04 +00:00
Job79 added 1 commit 2026-11-22 17:05:15 +00:00
gitea-runner 6 removed builtin:checkout. With Node.js in the job,
actions/checkout works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Job79 changed title from fix: check out with git, sign local builds with a test key to fix: check out with actions/checkout, sign local builds with a test key 2026-11-22 17:05:16 +00:00
Job79 added 1 commit 2026-11-22 17:27:43 +00:00
Job79 added 1 commit 2026-11-22 17:41:00 +00:00
actions/checkout needs Node.js in every job and fetches the action from
GitHub. Four lines of git need neither.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Job79 changed title from fix: check out with actions/checkout, sign local builds with a test key to fix: check out with git, sign local builds with a test key 2026-11-22 17:41:00 +00:00
Job79 added 1 commit 2026-11-23 18:25:40 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Job79 added 1 commit 2026-11-23 18:28:05 +00:00
It replaces mkosi.crt for local tests, without openssl or a
mkosi.local.conf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Job79 changed title from fix: check out with git, sign local builds with a test key to fix: check out with git, regenerate the test key with mkosi -f genkey 2026-11-23 18:28:11 +00:00
Job79 added 1 commit 2026-11-23 18:30:42 +00:00
agentos is public, so the clone needs no token. The job image has git.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Job79 changed title from fix: check out with git, regenerate the test key with mkosi -f genkey to fix: check out with actions/checkout, regenerate the test key with mkosi -f genkey 2026-11-23 18:32:39 +00:00
Job79 added 1 commit 2026-11-23 18:32:39 +00:00
The job image has Node.js 26, so the standard action works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Job79 merged commit f043ab7fe0 into main 2026-11-23 18:33:22 +00:00
Job79 changed title from fix: check out with actions/checkout, regenerate the test key with mkosi -f genkey to fix: check out with actions/checkout, publish with a package token, mkosi -f genkey 2026-11-23 18:41:26 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Job79/agentos#2