Skip to content

fix: use MINISIGN_PASS environment variable for password#18

Closed
ramonclaudio wants to merge 1 commit intomainfrom
fix/minisign-password-flag
Closed

fix: use MINISIGN_PASS environment variable for password#18
ramonclaudio wants to merge 1 commit intomainfrom
fix/minisign-password-flag

Conversation

@ramonclaudio
Copy link
Owner

@ramonclaudio ramonclaudio commented Sep 7, 2025

Summary

  • Change from piping password to using MINISIGN_PASS env var
  • Remove incorrect MINISIGN_ASK_PASS usage
  • Simplify find command for attestation signing
  • Ensures password-protected keys work correctly in CI

Problem

The workflow was failing with "Wrong password for that key" because minisign wasn't properly receiving the password. The previous attempts to pipe the password or use MINISIGN_ASK_PASS don't work.

Solution

Use the MINISIGN_PASS environment variable which minisign checks for the password when running in non-interactive mode. This is the standard way to provide passwords to minisign in CI environments.

Changes

  • Export MINISIGN_PASS environment variable with the password from GitHub secrets
  • Remove piping attempts and MINISIGN_ASK_PASS usage
  • Simplified the find command for attestation signing

Testing

This fix ensures the publish workflow can properly sign artifacts when using password-protected minisign keys stored in GitHub secrets.

- Add -W flag to all minisign commands to properly read password from stdin
- Fixes 'Wrong password for that key' error in publish workflow
- Ensures password-protected keys work correctly in CI environment
@ramonclaudio ramonclaudio changed the title fix: use -W flag for minisign password input fix: use MINISIGN_PASS environment variable for password Sep 7, 2025
@ramonclaudio ramonclaudio deleted the fix/minisign-password-flag branch September 7, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant