Replies: 1 comment
-
Pretty sure you'll need to build your own image with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In a job that uses the
ubuntu-latest
runner, I've got a step that calls the GitHub API with thegh
client, like so:However, the step fails when I run the workflow with the following command (I'm using the GitHub-extension-installed version of act):
gh act schedule -v -s GITHUB_TOKEN=github_pat_foo -W ./.github/workflows/npm-audit.yml
The full job looks like this:
Here's the error I receive with verbose output:
What's got me puzzled (among other things) is that the catthehacker runner images seem to contain
gh
: https://github.com/catthehacker/docker_images/blob/master/linux/ubuntu/scripts/gh.shUpdate: thinking it was possible that I was using a non-standard image for the runner, I logged in to GHCR and then ran
act
with the-P
flag:gh act schedule -P ubuntu-latest="ghcr.io/catthehacker/ubuntu:act-22.04" -v -s GITHUB_TOKEN=github_foo -W ./.github/workflows/npm-audit.yml
Still the same result. I also tried the20.04
image, thinking that it might have been removed in the22.04
image. No luck.Then I shelled into the pulled image and tried to find
gh
. Nothing:Versions:
Beta Was this translation helpful? Give feedback.
All reactions