Skip to content

fix: use -W flag for minisign password input from stdin#20

Merged
ramonclaudio merged 1 commit intomainfrom
fix/minisign-stdin-password
Sep 7, 2025
Merged

fix: use -W flag for minisign password input from stdin#20
ramonclaudio merged 1 commit intomainfrom
fix/minisign-stdin-password

Conversation

@ramonclaudio
Copy link
Owner

Summary

  • Add -W flag to all minisign commands to read password from stdin
  • Remove MINISIGN_PASS environment variable approach that doesn't work
  • Pipe password directly to minisign for all signing operations

Problem

The workflow was failing with "Password: get_password()" error because minisign doesn't recognize the MINISIGN_PASS environment variable. Minisign was waiting for interactive password input which fails in CI.

Solution

Use the -W flag which tells minisign to read the password from stdin instead of prompting interactively. This allows us to pipe the MINISIGN_PASSPHRASE secret directly to minisign.

Changes

  • Updated all three minisign signing steps to use -W flag with piped password
  • Package signing (.tgz files)
  • SBOM signing (.sbom.* and .ms-spdx.json files)
  • Attestation signing (.intoto.jsonl files)

Testing

This fix ensures the publish workflow can properly sign artifacts when using password-protected minisign keys in CI environments.

- Add -W flag to all minisign commands to read password from stdin
- Remove MINISIGN_PASS environment variable approach that doesn't work
- Pipe password directly to minisign for all signing operations
@ramonclaudio ramonclaudio merged commit 660cf99 into main Sep 7, 2025
5 checks passed
@ramonclaudio ramonclaudio deleted the fix/minisign-stdin-password branch September 7, 2025 16:01
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