3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2025-01-31 07:01:20 +01:00

Add input for custom gh token

This commit is contained in:
David Tolnay 2025-01-28 19:04:42 -08:00
parent a26a842bce
commit 8f7ab41331
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -8,6 +8,9 @@ inputs:
bin: bin:
description: Name of binary; default = same as crate name description: Name of binary; default = same as crate name
required: false required: false
github_token:
description: Access token for connecting to GitHub API for artifact attestation; normally the ephemeral {{github.token}} or {{secrets.GITHUB_TOKEN}} when used in a GitHub workflow, or a personal access token when run by Act Runner
default: ${{github.token}}
runs: runs:
using: composite using: composite
steps: steps:
@ -27,7 +30,7 @@ runs:
- name: Verify artifact attestation - name: Verify artifact attestation
run: gh attestation verify --owner dtolnay ${{steps.cargo.outputs.dir}}/${{steps.inputs.outputs.bin}} run: gh attestation verify --owner dtolnay ${{steps.cargo.outputs.dir}}/${{steps.inputs.outputs.bin}}
env: env:
GH_TOKEN: ${{github.token}} GH_TOKEN: ${{inputs.github_token}}
shell: bash shell: bash
- name: Set executable bit - name: Set executable bit
run: chmod +x ${{steps.cargo.outputs.dir}}/${{steps.inputs.outputs.bin}} run: chmod +x ${{steps.cargo.outputs.dir}}/${{steps.inputs.outputs.bin}}