https://github.com/fklc/sign-files-action
Create signatures of files with a private key using GitHub Actions
https://github.com/fklc/sign-files-action
Last synced: 8 months ago
JSON representation
Create signatures of files with a private key using GitHub Actions
- Host: GitHub
- URL: https://github.com/fklc/sign-files-action
- Owner: FKLC
- Created: 2022-05-14T04:48:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T06:13:40.000Z (about 4 years ago)
- Last Synced: 2024-12-20T03:45:54.466Z (over 1 year ago)
- Language: JavaScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sign Files GitHub Action
With this Action, you can create signatures of files in the target directory just by setting your private key.
## Inputs
| Name | Description | Required | Default |
|--------------|------------------------------------------------------------|----------|----------------|
| privateKey | The private key that will be used to sign the files | Yes | `null` |
| passphrase | Private key passphrase | No | `null` |
| files | Files to sign. Glob pattern(s) | Yes | `null` |
| algorithm | Algorithm used to sign the files | No | `'RSA-SHA256'` |
| extension | File extension that will be added at the end of file names | No | `'.sig'` |
| outputFolder | Target folder to create signature files in | No | `'./'` |
| encoding | Encoding type of signature | No | `null` |
## Usage Example with All Inputs
```yaml
uses: 'FKLC/sign-files-action@v1.0.0'
with:
privateKey: ${{ secrets.PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
algorithm: 'RSA-SHA256'
extension: '.sig'
outputFolder: './'
files: |
builds/**
data/**
```