fix: publish with PACKAGE_TOKEN, new update signing key
These missed PR #2, which was merged before them. Gitea gives the job token at most read access to a user's packages, so Publish uses the PACKAGE_TOKEN secret, a token with only write:package. The permissions block never helped and goes. The update signing key is new ("agentos updates"). The old one was a copy of runneros's ("git-runner updates") and its private half is lost. The SIGNING_KEY secret already holds the new key. VMs installed with the old key need a reinstall to take updates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f043ab7fe0
commit
4a296883dc
2 files changed
+3
-4
No files matched your search
@@ -8,6 +8,8 @@
|
||||
# - SIGNING_KEY repository secret: the armored private gpg key whose
|
||||
# public half is mkosi.extra/usr/lib/systemd/
|
||||
# import-pubring.pgp, which systemd-sysupdate checks.
|
||||
# - PACKAGE_TOKEN repository secret: a token of the package owner with only
|
||||
# write:package. The job token can't write packages.
|
||||
name: os
|
||||
on:
|
||||
push:
|
||||
@@ -19,9 +21,6 @@ on:
|
||||
jobs:
|
||||
os:
|
||||
runs-on: linux
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Install tools
|
||||
run: dnf install -yq mkosi
|
||||
@@ -55,7 +54,7 @@ jobs:
|
||||
working-directory: mkosi.output
|
||||
env:
|
||||
PKG: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/agentos/latest
|
||||
AUTH: "Authorization: token ${{ gitea.token }}"
|
||||
AUTH: "Authorization: token ${{ secrets.PACKAGE_TOKEN }}"
|
||||
run: |
|
||||
curl -fsS -H "$AUTH" -X DELETE "$PKG" || true
|
||||
for f in agentos_*.efi agentos_*.usr-*.raw.zst agentos.qcow2 agentos_*.manifest SHA256SUMS.gpg SHA256SUMS; do
|
||||
|
||||
Reference in new issue
Block a user