Sign #60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sign | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Download dummy executable for signing | |
| run: curl -o random.dll -L https://github.com/carterjones/hello-world-dll/releases/download/v1.0.0/hello-world-x64.dll | |
| - name: Upload unsigned artifact | |
| id: upload-unsigned-artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 'unsigned' | |
| if-no-files-found: error | |
| path: random.dll | |
| - name: Submit Signing Request | |
| uses: signpath/github-action-submit-signing-request@v1 | |
| with: | |
| api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' | |
| organization-id: '${{ vars.SIGNPATH_ORGANIZATION_ID }}' | |
| project-slug: 'executable' | |
| signing-policy-slug: 'release-signing' | |
| github-artifact-id: "${{steps.upload-unsigned-artifact.outputs.artifact-id}}" | |
| artifact-configuration-slug: 'zipped' | |
| wait-for-completion: false | |
| - name: Fails | |
| run: exit 1 # Fails on purpose so that it can be re-tried |