[GH-ISSUE #110] Does not support public repo action paths #73

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

Originally created by @Nuru on GitHub (Feb 27, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/110

According to the official docs the syntax for referring to an action from a public repo is
{owner}/{repo}@{ref} or {owner}/{repo}/{path}@{ref}.

act does not support the {owner}/{repo}/{path}@{ref} syntax.

Given workflow path-example.yml

name: Path Example
on: pull_request

jobs:
  example:
    runs-on: ubuntu-latest
    steps:
    - uses: cloudposse/actions/github/slash-command-dispatch@0.14.0

act treats the path as part of the repo name, not a path within it

 $ act
[Path Example/example] 🚀  Start image=node:12.6-buster-slim
[Path Example/example]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Path Example/example]   🐳  docker cp src=/Users/nuru/dev/example/. dst=/github/workspace
[Path Example/example] ⭐  Run cloudposse/actions/github/slash-command-dispatch@0.14.0
[Path Example/example]   ☁  git clone 'https://github.com/cloudposse/actions' # ref=0.14.0
[Path Example/example]   ❌  Failure - cloudposse/actions/github/slash-command-dispatch@0.14.0
Error: open /Users/nuru/.cache/act/cloudposse-actions-github-slash-command-dispatch@0.14.0/action.yaml: no such file or directory
Originally created by @Nuru on GitHub (Feb 27, 2020). Original GitHub issue: https://github.com/nektos/act/issues/110 According to the [official docs](https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#referencing-an-action-from-a-public-repository) the syntax for referring to an action from a public repo is `{owner}/{repo}@{ref}` or `{owner}/{repo}/{path}@{ref}`. `act` does not support the `{owner}/{repo}/{path}@{ref}` syntax. Given workflow `path-example.yml` ```yaml name: Path Example on: pull_request jobs: example: runs-on: ubuntu-latest steps: - uses: cloudposse/actions/github/slash-command-dispatch@0.14.0 ``` `act` treats the path as part of the repo name, not a path within it ``` $ act [Path Example/example] 🚀 Start image=node:12.6-buster-slim [Path Example/example] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Path Example/example] 🐳 docker cp src=/Users/nuru/dev/example/. dst=/github/workspace [Path Example/example] ⭐ Run cloudposse/actions/github/slash-command-dispatch@0.14.0 [Path Example/example] ☁ git clone 'https://github.com/cloudposse/actions' # ref=0.14.0 [Path Example/example] ❌ Failure - cloudposse/actions/github/slash-command-dispatch@0.14.0 Error: open /Users/nuru/.cache/act/cloudposse-actions-github-slash-command-dispatch@0.14.0/action.yaml: no such file or directory ```
kerem 2026-03-01 21:39:50 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

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

fixed on master, will be in next release.

<!-- gh-comment-id:592206046 --> @cplee commented on GitHub (Feb 27, 2020): fixed on master, will be in next release.
Author
Owner

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

available in v0.2.5

<!-- gh-comment-id:592647611 --> @cplee commented on GitHub (Feb 28, 2020): available in `v0.2.5`
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#73
No description provided.