Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamaranl/add-signtool-action
Locates the latest version of Microsoft's signtool installed and adds it to the runner's PATH (Windows runners ONLY)
https://github.com/kamaranl/add-signtool-action
cicd code-signing signing signtool tool
Last synced: 12 days ago
JSON representation
Locates the latest version of Microsoft's signtool installed and adds it to the runner's PATH (Windows runners ONLY)
- Host: GitHub
- URL: https://github.com/kamaranl/add-signtool-action
- Owner: KamaranL
- License: mit
- Created: 2024-07-16T10:37:44.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-16T13:36:45.000Z (5 months ago)
- Last Synced: 2024-07-16T16:09:34.571Z (5 months ago)
- Topics: cicd, code-signing, signing, signtool, tool
- Language: PowerShell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Add Signtool Action
> Locates the latest version of Microsoft's signtool installed and adds it to the runner's PATH
[![View License on GitHub](https://badgen.net/github/license/KamaranL/add-signtool-action?cache=3600)](./LICENSE.txt)
[![View Latest Release on GitHub](https://badgen.net/github/release/KamaranL/add-signtool-action/stable?icon=github&label=latest&cache=3600)](https://github.com/KamaranL/add-signtool-action)- [Add Signtool Action](#add-signtool-action)
- [Usage](#usage)
- [Outputs](#outputs)
- [Examples](#examples)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](https://learn.microsoft.com/en-us/dotnet/framework/tools/signtool-exe#examples) for more on signtool and how it works.
## Usage
```yml
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 |