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:
parent
a26a842bce
commit
8f7ab41331
1 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,9 @@ inputs:
|
|||
bin:
|
||||
description: Name of binary; default = same as crate name
|
||||
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:
|
||||
using: composite
|
||||
steps:
|
||||
|
@ -27,7 +30,7 @@ runs:
|
|||
- name: Verify artifact attestation
|
||||
run: gh attestation verify --owner dtolnay ${{steps.cargo.outputs.dir}}/${{steps.inputs.outputs.bin}}
|
||||
env:
|
||||
GH_TOKEN: ${{github.token}}
|
||||
GH_TOKEN: ${{inputs.github_token}}
|
||||
shell: bash
|
||||
- name: Set executable bit
|
||||
run: chmod +x ${{steps.cargo.outputs.dir}}/${{steps.inputs.outputs.bin}}
|
||||
|
|
Loading…
Add table
Reference in a new issue