Skip to content
check-circle

GitHub Action

Sign Files Action

v1.0.0 Latest version

Sign Files Action

check-circle

Sign Files Action

Create signature files with the given private key

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sign Files Action

uses: FKLC/sign-files-action@v1.0.0

Learn more about this action in FKLC/sign-files-action

Choose a version

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

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/**