mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Refactor github-token input to use CUSTOM_GH_TOKEN secret for authentication in runner-fallback action
This commit is contained in:
parent
179553fe38
commit
80083ce77c
8
.github/actions/runner-fallback/action.yml
vendored
8
.github/actions/runner-fallback/action.yml
vendored
@ -10,6 +10,10 @@ inputs:
|
|||||||
fallback-runner:
|
fallback-runner:
|
||||||
description: 'Comma-separated label list or single label for the fallback (e.g. "ubuntu-latest")'
|
description: 'Comma-separated label list or single label for the fallback (e.g. "ubuntu-latest")'
|
||||||
required: true
|
required: true
|
||||||
|
github-token:
|
||||||
|
description: 'GitHub token with repo admin read permissions'
|
||||||
|
required: false
|
||||||
|
default: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
use-runner:
|
use-runner:
|
||||||
@ -23,9 +27,7 @@ runs:
|
|||||||
id: pick
|
id: pick
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
# token needs to have reop admin read permissions
|
TOKEN: ${{ inputs.github-token }}
|
||||||
# https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-a-repository
|
|
||||||
TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
|
|
||||||
PRIMARY: ${{ inputs.primary-runner }}
|
PRIMARY: ${{ inputs.primary-runner }}
|
||||||
FALLBACK: ${{ inputs.fallback-runner }}
|
FALLBACK: ${{ inputs.fallback-runner }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user