Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: Install gh cli on self-hosted runner
In confidential-containers#2077 I forgot about pull_request_target not testing workflows in PRs and that self-hosted runners wouldn't have the gh cli installed, so this attempts to fix the workflows and install gh cli first. I also set `GH_TOKEN` env in the step that uses `gh` based on the `gh help environment` doc that states: GH_TOKEN: an authentication token for github.com API requests. Setting this avoids being prompted to authenticate. Note: I did find a few actions to do this, but they were only used by single digit projects, so I figured it would be safer to do it ourselves for now Signed-off-by: stevenhorsman <steven@uk.ibm.com>
- Loading branch information