tauri-action: Error incorrect updater private key password: Missing comment in secret key
I’m building my app with the updater. I already tried putting a password or not, and it keeps giving me that error in the action, but locally, it works.
Bundling PenguinWriter.app (/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app)
Bundling PenguinWriter_1.0.0_x64.dmg (/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/dmg/PenguinWriter_1.0.0_x64.dmg)
Running bundle_dmg.sh
Bundling /Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app.tar.gz (/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app.tar.gz)
Finished 2 bundles at:
/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app
/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/dmg/PenguinWriter_1.0.0_x64.dmg
/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app.tar.gz (updater)
Error incorrect updater private key password: Missing comment in secret key
ELIFECYCLE Command failed with exit code 1.
Error: Command failed with exit code 1: pnpm tauri build
https://github.com/MasterKrab/Penguin-Writer/actions/runs/7379835021/job/20076548977
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 23 (7 by maintainers)
Commits related to this issue
- What if just like don't sign things tauri-apps/tauri-action#658 — committed to overlayeddev/overlayed by Hacksore 2 years ago
Thanks @Ziltosh I was also setting an environmental secret. Worked great after I set a repo secret @FabianLars Maybe updating the example action with this info.
env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_SIGNING_PRIVATE_KEY ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} //you need to add a repo secret with your generated private key. See github docs https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository
Or something like this in the docs. TY. Cheers!
So I actually do get this so adding my analysis to the issue.
I see this on people making pull requests from a fork will not allow the
TAURI_PRIVATE_KEYandTAURI_PUBLIC_KEYenv vars to be pulled from my repos secrets.🛑 Issue = Workflow Run (PR) - This is a user creating a pull request from a forked repo.
✅ No Issue = Workflow Run (PR) - This is me creating a pull request in the same repo.
Ok, I finally found it! I was incorrectly entering the TAURI_PRIVATE_KEY in the repository settings. You need to go to Secrets and variables > Actions, and directly click on Add repository secret.
Personally, I was adding an environment secret…
Thank you.
I updated
@tauri-apps/clito1.5.10, set action totauri-apps/tauri-action@v0.5and used a password.Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100511692
then i set action to
tauri-apps/tauri-action@dev.Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100607610/job/22138995188
then i set an empty password:
Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100774078
Created new keys:
Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100949483/job/22140028433
I ran into the same issue in Github Actions:
https://github.com/snijderlab/annotator/actions/runs/8096651802/job/22125859028
Locally it works. Based on the comments above I reset my github secrets multiple times and generated new keys. This is the last of a couple of actions that failed on exactly the same reason.
I am using only the
cargo-tauri-cliand thetauri-apps/tauri-actiongithub action.me too tauri/target/release/bundle/macos/PagePatrol.app.tar.gz) Finished 2 bundles at: /Users/runner/work/pagepatrol/pagepatrol/src-tauri/target/release/bundle/macos/PagePatrol.app /Users/runner/work/pagepatrol/pagepatrol/src-tauri/target/release/bundle/dmg/PagePatrol_0.1.0_x64.dmg /Users/runner/work/pagepatrol/pagepatrol/src-tauri/target/release/bundle/macos/PagePatrol.app.tar.gz (updater)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. Error: Command failed with exit code 1: yarn tauri build