mirror of
https://github.com/dtolnay/install.git
synced 2025-01-31 07:01:20 +01:00
Merge pull request #29 from dtolnay/ghtoken
Add input for custom gh token
This commit is contained in:
commit
5db909af00
1 changed files with 4 additions and 1 deletions
|
@ -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}} when used in a GitHub workflow, or a personal access token {{secrets.GH_TOKEN}} in Gitea's 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}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue