fix: check out with git, sign local builds with a test key

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>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-22 16:07:45 +00:00
1 parent 738a902b2d
commit 94fd5d1ce9
4 files changed
+37 -4

No files matched your search

+14 -1
View File
@@ -19,11 +19,24 @@ on:
jobs:
os:
runs-on: linux
# permissions lets gitea.token check out the repository and publish the
# package.
permissions:
contents: read
packages: write
steps:
- name: Install tools
run: dnf install -yq mkosi git-core
# Check out fetches the commit with git, because the job image has no
# Node.js for actions/checkout.
- name: Check out
uses: builtin:checkout
env:
AUTH: "Authorization: token ${{ gitea.token }}"
run: |
git init -q
git -c http.extraHeader="$AUTH" fetch -q --depth 1 \
"${{ gitea.server_url }}/${{ gitea.repository }}" "${{ gitea.sha }}"
git checkout -q FETCH_HEAD
- name: Build
env:
KEY: ${{ secrets.SECUREBOOT_KEY }}