FKLC / sign-files-action

Create signatures of files with a private key using GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Create signatures of files with a private key using GitHub Actions


Languages

Language:JavaScript 100.0%