Skip to content

Commit dc011e9

Browse files
jaredcosulichclaude
andcommitted
fix(ci): grant contents:write and use portable base64 decode
All release jobs failed at the tauri-action release step because the default GITHUB_TOKEN was read-only (common for private/org repos) — add job-level permissions: contents: write so it can create the Release and upload assets. Also decode the notarization .p8 with openssl (macOS/BSD base64 lacks GNU's --decode). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6bb44fa commit dc011e9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/desktop-release.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on:
2020

2121
jobs:
2222
build:
23+
# tauri-action creates the GitHub Release + uploads assets, which needs write
24+
# access to repo contents. Org/private-repo default tokens are often read-only,
25+
# which fails every matrix job at the release step — grant it explicitly.
26+
permissions:
27+
contents: write
2328
strategy:
2429
fail-fast: false
2530
matrix:
@@ -71,7 +76,8 @@ jobs:
7176
if: startsWith(matrix.platform, 'macos')
7277
env:
7378
APPLE_API_KEY_P8: ${{ secrets.APPLE_API_KEY_P8 }}
74-
run: printf '%s' "$APPLE_API_KEY_P8" | base64 --decode > "$RUNNER_TEMP/apple-api-key.p8"
79+
# openssl decodes portably (macOS/BSD base64 lacks GNU's --decode; -A joins wrapped lines).
80+
run: printf '%s' "$APPLE_API_KEY_P8" | openssl base64 -d -A > "$RUNNER_TEMP/apple-api-key.p8"
7581

7682
- name: Build the app
7783
uses: tauri-apps/tauri-action@v0

0 commit comments

Comments
 (0)