Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonfriesen/windows-signer-action
GitHub Action to sign binaries for Windows
https://github.com/jonfriesen/windows-signer-action
Last synced: 24 days ago
JSON representation
GitHub Action to sign binaries for Windows
- Host: GitHub
- URL: https://github.com/jonfriesen/windows-signer-action
- Owner: jonfriesen
- License: mit
- Created: 2019-11-06T15:41:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T15:45:33.000Z (almost 5 years ago)
- Last Synced: 2024-09-17T20:00:44.045Z (about 2 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Windows Signer Action
This action will sign a binary using an RSA 2048 x509 certification. It expects a crt and key file to be stored in an environment variable along with name, domain, and binary path.
## Required Environment Variables
- `WINDOWS_CERT` - Your public certificate (this should be a GitHub secret)
- `WINDOWS_KEY` - Your signing key (this should be a GitHub secret)
- `BINARY` - Path to the binary you want signed
- `NAME` - Name of signer
- `DOMAIN` - Domain of signerIf you want to test with a self signed certs you can generate some with:
```bash
openssl req \
-newkey rsa:2048 -nodes -keyout codesign.key \
-x509 -days 365 -out bundle.crt
# and put them in a local environment var with
export WINDOWS_CERT=$(bundle.crt)
export WINDOWS_KEY=$(codesign.key)
```## Example
```
- name: Sign Windows Binary
uses: jonfriesen/[email protected]
env:
NAME: SignerName
DOMAIN: https://SignerDomain.com
BINARY: dist/MyBinary.exe
WINDOWS_CERT: ${{ secrets.WINDOWS_CERT }}
WINDOWS_KEY: ${{ secrets.WINDOWS_KEY }}
```