The actual behavior is to provide a registration token via the environment variable RUNNER_TOKEN. This token can be retrieved from the repository's settings, but this token is only available one hour, which might be a problem is some cases.
We could use the GitHub Actions API to dynamically create this registration token. This API endpoint requires a personal access token, which would be provided via another environment variable (ie, GITHUB_ACCESS_TOKEN).
The actual behavior is to provide a registration token via the environment variable
RUNNER_TOKEN
. This token can be retrieved from the repository's settings, but this token is only available one hour, which might be a problem is some cases.We could use the GitHub Actions API to dynamically create this registration token. This API endpoint requires a personal access token, which would be provided via another environment variable (ie,
GITHUB_ACCESS_TOKEN
).