From 69c5023f1ef52304d588e5a2f2e173b5a265b166 Mon Sep 17 00:00:00 2001 From: Noah <2+noah@noreply.gitea.bluefla.re> Date: Wed, 11 Nov 2026 18:11:26 -0600 Subject: [PATCH] ci: bake the read-only release-reader token into GUI release builds Pass ALKANE_EMBEDDED_TOKEN (a repo Actions secret, a restricted read-only token scoped to the alkane-os repo) into the release and candidate workflow builds, so the published GUI can list the private alkane-os releases in its install picker with no user setup. The source tree carries no secret (option_env!); the value lives only in CI-built binaries. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i --- .gitea/workflows/next.yml | 2 ++ .gitea/workflows/release.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.gitea/workflows/next.yml b/.gitea/workflows/next.yml index 6609be62..13cbfebc 100644 --- a/.gitea/workflows/next.yml +++ b/.gitea/workflows/next.yml @@ -22,6 +22,7 @@ jobs: CARGO_TARGET_DIR: target CARGO_BUILD_JOBS: 2 WX_WINDOWS_PREFIX: /root/.cache/wx-3.3.3-mingw + ALKANE_EMBEDDED_TOKEN: ${{ secrets.ALKANE_EMBEDDED_TOKEN }} steps: - uses: actions/checkout@v4 with: @@ -94,6 +95,7 @@ jobs: CARGO_BUILD_JOBS: 2 WX_PREFIX: /root/.cache/wx-3.3.3-linux WX_RS_WXCONFIG: /root/.cache/wx-3.3.3-linux/bin/wx-config + ALKANE_EMBEDDED_TOKEN: ${{ secrets.ALKANE_EMBEDDED_TOKEN }} steps: - uses: actions/checkout@v4 with: diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2c06e3ff..1386b301 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -28,6 +28,9 @@ jobs: CARGO_TARGET_DIR: target CARGO_BUILD_JOBS: 2 WX_WINDOWS_PREFIX: /root/.cache/wx-3.3.3-mingw + # Read-only token baked into the GUI so the release picker can list the + # private alkane-os releases with no user setup (option_env!). + ALKANE_EMBEDDED_TOKEN: ${{ secrets.ALKANE_EMBEDDED_TOKEN }} steps: - name: Checkout (full history for tags) uses: actions/checkout@v4 @@ -136,6 +139,9 @@ jobs: # Set once for the whole job so build/clippy/test/bench steps don't each # re-export it (round 18 #12). WX_RS_WXCONFIG: /root/.cache/wx-3.3.3-linux/bin/wx-config + # Read-only token baked into the GUI so the release picker can list the + # private alkane-os releases with no user setup (option_env!). + ALKANE_EMBEDDED_TOKEN: ${{ secrets.ALKANE_EMBEDDED_TOKEN }} steps: - name: Checkout (full history for tags) uses: actions/checkout@v4