Skip to content

Locates the latest version of Microsoft's signtool installed and adds it to the runner's PATH (Windows runners ONLY)

License

Notifications You must be signed in to change notification settings

KamaranL/add-signtool-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Signtool Action

Locates the latest version of Microsoft's signtool installed and adds it to the runner's PATH

View License on GitHub View Latest Release on GitHub

Use this action to locate signtool.exe and add it to the PATH environment variable for easier execution throughout the rest of a workflow's job.

**This action will only run on Windows runners, it will fail fast otherwise.

Refer to Microsoft's documentation for more on signtool and how it works.

Usage

on: push
jobs:
  build:
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v4

      - uses: KamaranL/add-signtool-action@v1
        id: signtool

      - run: Write-Output "$env:SIGNTOOL_DIR"
        # prints out the absolute path to the located signtool executable
        shell: pwsh
        env:
          SIGNTOOL_DIR: ${{ steps.signtool.outputs.signtool-x64 }}

Outputs

This action outputs the path of the located signtool into the output key signtool-${{ runner.arch }}.

Examples

${{ runner.arch }} outputs key
x64 signtool-x64
arm signtool-arm

About

Locates the latest version of Microsoft's signtool installed and adds it to the runner's PATH (Windows runners ONLY)

Topics

Resources

License

Stars

Watchers

Forks