You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Sign file
v1.0.0
The code-sign-action action integrates with Digicert One and uses SignTool on Windows runners and JSign on Linux runners..
Forked from https://github.com/cognitedata/code-sign-action. This action is modified so it is more configurable.
certificate-host
: The host of the certificate. Defaults tohttps://clientauth.one.digicert.com
.certificate
: The certificate to use for signing. Must be in base64.certificate-password
: The password for the certificate.certificate-fingerprint
: The fingerprint of the certificate to use for signing.api-key
: The API key to use for signing.keypair-alias
: The alias of the keypair to use for signing.path
: A path to a file or a folder that contains the files to sign.
name: codesign-example-single-file
on:
push:
branches:
- main
- 'releases/*'
jobs:
run-action:
runs-on: windows-2022
steps:
- name: Run the action for a single file
uses: toitlang/action-code-sign@v1
with:
certificate: ${{ secrets.DIGICERT_CERTIFICATE }}
api-key: ${{ secrets.DIGICERT_API_KEY }}
certificate-password: ${{ secrets.DIGICERT_PASSWORD }}
certificate-fingerprint: ${{ secrets.DIGICERT_FINGERPRINT }}
keypair-alias: ${{ vars.DIGICERT_KEYPAIR_ALIAS }}
path: test\test.exe
name: codesign-example-multiple-files
on:
pull_request:
push:
branches:
- main
- "releases/*"
jobs:
run-action-linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run the action for multiple files in directory
uses: toitlang/action-code-sign@v1
with:
certificate: ${{ secrets.DIGICERT_CERTIFICATE }}
api-key: ${{ secrets.DIGICERT_API_KEY }}
certificate-password: ${{ secrets.DIGICERT_PASSWORD }}
certificate-fingerprint: ${{ secrets.DIGICERT_FINGERPRINT }}
keypair-alias: ${{ vars.DIGICERT_KEYPAIR_ALIAS }}
path: test