[GH-ISSUE #47] Run actions locally using Github Actions container gcr.io/github-actions-images/action-runner #26

Closed
opened 2026-03-01 21:39:13 +03:00 by kerem · 2 comments
Owner

Originally created by @dougnukem on GitHub (Mar 9, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/47

I noticed that github actions are run using the following container: gcr.io/github-actions-images/action-runner

$ docker run gcr.io/github-actions-images/action-runner:latest --help
Usage of action-runner:
  -action-id string
    	Unique identifier for action execution
  -debug
    	Indicates whether to output Debug logs
  -entrypoint string
    	Overwrite the default ENTRYPOINT of the image
  -env-keys string
    	Specifies which environment variables to copy to container (defaults to all)
  -forward-mount value
    	Mount paths to forward
  -image string
    	Which image to run
  -reporting-url string
    	URL to report progress
  -secret-keys string
    	Environment variable keys to filter from output (comma-separated
  -signing-key string
    	Path to signing key
  -working-dir string
    	Working directory for container

Here's an example run on github:

It might be useful to keep in sync local functionality by matching what the real github actions uses.

Originally created by @dougnukem on GitHub (Mar 9, 2019). Original GitHub issue: https://github.com/nektos/act/issues/47 I noticed that github actions are run using the following container: `gcr.io/github-actions-images/action-runner` - https://console.cloud.google.com/gcr/images/github-actions-images/GLOBAL/action-runner?gcrImageListsize=30 ``` $ docker run gcr.io/github-actions-images/action-runner:latest --help Usage of action-runner: -action-id string Unique identifier for action execution -debug Indicates whether to output Debug logs -entrypoint string Overwrite the default ENTRYPOINT of the image -env-keys string Specifies which environment variables to copy to container (defaults to all) -forward-mount value Mount paths to forward -image string Which image to run -reporting-url string URL to report progress -secret-keys string Environment variable keys to filter from output (comma-separated -signing-key string Path to signing key -working-dir string Working directory for container ``` Here's an example run on github: - https://github.com/cedrickring/golang-action/runs/74951453 It might be useful to keep in sync local functionality by matching what the real github actions uses.
kerem 2026-03-01 21:39:13 +03:00
Author
Owner

@jchannon commented on GitHub (May 22, 2019):

@dougnukem Do you know where the Dockerfile is for this image? How did you work out you could append --help on the end for example. Thanks

<!-- gh-comment-id:494943857 --> @jchannon commented on GitHub (May 22, 2019): @dougnukem Do you know where the Dockerfile is for this image? How did you work out you could append `--help` on the end for example. Thanks
Author
Owner

@cplee commented on GitHub (Feb 12, 2020):

doesn't apply after release of github actions v2

<!-- gh-comment-id:585091540 --> @cplee commented on GitHub (Feb 12, 2020): doesn't apply after release of github actions v2
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#26
No description provided.