[GH-ISSUE #62] Short SHAs are not working #37

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

Originally created by @steebchen on GitHub (May 6, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/62

You can use short SHAs like this:

action "run tests" {
  uses = "actions/docker/cli@04185cf"
  args = "build ."
}

This works fine in Github, but it does not using act:

[run tests] Unable to resolve 04185cf: reference not found
Error: reference not found
Originally created by @steebchen on GitHub (May 6, 2019). Original GitHub issue: https://github.com/nektos/act/issues/62 You can use short SHAs like this: ``` action "run tests" { uses = "actions/docker/cli@04185cf" args = "build ." } ``` This works fine in Github, but it does not using act: ``` [run tests] Unable to resolve 04185cf: reference not found Error: reference not found ```
kerem 2026-03-01 21:39:18 +03:00
Author
Owner

@alexlafroscia commented on GitHub (May 9, 2019):

I get the same problem with a tag.

I'm trying to use nuxt/actions-yarn@node-10; it works fine on GitHub, but I get the same error with act.

<!-- gh-comment-id:490743956 --> @alexlafroscia commented on GitHub (May 9, 2019): I get the same problem with a tag. I'm trying to use `nuxt/actions-yarn@node-10`; it works fine on GitHub, but I get the same error with `act`.
Author
Owner

@steebchen commented on GitHub (Mar 19, 2020):

@alexlafroscia Can you please re-open? (oops – sorry for the wrong mention. I'm too tired today!)

<!-- gh-comment-id:601263137 --> @steebchen commented on GitHub (Mar 19, 2020): @alexlafroscia Can you please re-open? (oops – sorry for the wrong mention. I'm too tired today!)
Author
Owner

@alexlafroscia commented on GitHub (Mar 19, 2020):

I'm not able to do that -- this isn't my repo.

<!-- gh-comment-id:601273847 --> @alexlafroscia commented on GitHub (Mar 19, 2020): I'm not able to do that -- this isn't my repo.
Author
Owner

@cplee commented on GitHub (Mar 19, 2020):

reopened.

can @alexlafroscia or @steebchen provide an example workflow to reproduce with latest version of act?

<!-- gh-comment-id:601274361 --> @cplee commented on GitHub (Mar 19, 2020): reopened. can @alexlafroscia or @steebchen provide an example workflow to reproduce with latest version of act?
Author
Owner

@github-actions[bot] commented on GitHub (May 19, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:630498555 --> @github-actions[bot] commented on GitHub (May 19, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@bogn83 commented on GitHub (Jun 10, 2020):

This is happening with act version 0.2.9 and uses: ruby/setup-ruby@v1 as well. v1 is a branch in this case.

Here's the reproduction https://github.com/bogn83/reproduce_act_62/blob/master/.github/workflows/ruby.yml

The logs of the successful run on GitHub's infrastructure can be found in the third step here.

Running act locally just prints:

[Setup Ruby/run_rspec] ⭐  Run Set up Ruby
[Setup Ruby/run_rspec]   ☁  git clone 'https://github.com/ruby/setup-ruby' # ref=v1
[Setup Ruby/run_rspec] Unable to resolve v1: reference not found
[Setup Ruby/run_rspec]   ❌  Failure - Set up Ruby
Error: reference not found
<!-- gh-comment-id:642015298 --> @bogn83 commented on GitHub (Jun 10, 2020): This is happening with `act version 0.2.9` and `uses: ruby/setup-ruby@v1` as well. `v1` is a branch in this case. Here's the reproduction https://github.com/bogn83/reproduce_act_62/blob/master/.github/workflows/ruby.yml The logs of the successful run on GitHub's infrastructure can be found in the [third step here](https://github.com/bogn83/reproduce_act_62/runs/757990486#check-step-3). Running act locally just prints: ``` [Setup Ruby/run_rspec] ⭐ Run Set up Ruby [Setup Ruby/run_rspec] ☁ git clone 'https://github.com/ruby/setup-ruby' # ref=v1 [Setup Ruby/run_rspec] Unable to resolve v1: reference not found [Setup Ruby/run_rspec] ❌ Failure - Set up Ruby Error: reference not found ```
Author
Owner

@kaiomagalhaes commented on GitHub (Jul 7, 2020):

I'm facing the same issue that @bogn83 mentioned.

<!-- gh-comment-id:654883790 --> @kaiomagalhaes commented on GitHub (Jul 7, 2020): I'm facing the same issue that @bogn83 mentioned.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 6, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:687680027 --> @github-actions[bot] commented on GitHub (Sep 6, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@amitmahbubani commented on GitHub (Sep 6, 2020):

Comment to keep this issue open.

<!-- gh-comment-id:687714692 --> @amitmahbubani commented on GitHub (Sep 6, 2020): Comment to keep this issue open.
Author
Owner

@celsoMartins commented on GitHub (Sep 24, 2020):

Same here. I'm adding more output. The actions are running at Github.

/w/t/flow_climate (develop ± ) ∫ act                                                                                                                                                                                              [15:04:51]
[FlowClimateBuild/Tests  ] 🚀  Start image=node:12.6-buster-slim
[FlowClimateBuild/Linters] 🚀  Start image=node:12.6-buster-slim
[FlowClimateBuild/Deploy ] 🚀  Start image=node:12.6-buster-slim
[FlowClimateBuild/Deploy ]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[FlowClimateBuild/Linters]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[FlowClimateBuild/Tests  ]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[FlowClimateBuild/Tests  ]   🐳  docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace
[FlowClimateBuild/Linters]   🐳  docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace
[FlowClimateBuild/Deploy ]   🐳  docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace
[FlowClimateBuild/Tests  ] ⭐  Run Checkout code
[FlowClimateBuild/Tests  ]   ✅  Success - Checkout code
[FlowClimateBuild/Tests  ] ⭐  Run Setup Ruby
[FlowClimateBuild/Tests  ]   ☁  git clone 'https://github.com/ruby/setup-ruby' # ref=v1
[FlowClimateBuild/Deploy ] ⭐  Run actions/checkout@v2
[FlowClimateBuild/Deploy ]   ✅  Success - actions/checkout@v2
[FlowClimateBuild/Deploy ] ⭐  Run akhileshns/heroku-deploy@v3.5.6
[FlowClimateBuild/Deploy ]   ☁  git clone 'https://github.com/akhileshns/heroku-deploy' # ref=v3.5.6
[FlowClimateBuild/Linters] ⭐  Run Checkout code
[FlowClimateBuild/Linters]   ✅  Success - Checkout code
[FlowClimateBuild/Linters] ⭐  Run Setup Ruby
[FlowClimateBuild/Linters]   ☁  git clone 'https://github.com/ruby/setup-ruby' # ref=v1
[FlowClimateBuild/Tests  ] Unable to resolve v1: reference not found
[FlowClimateBuild/Tests  ]   ❌  Failure - Setup Ruby
<!-- gh-comment-id:698505871 --> @celsoMartins commented on GitHub (Sep 24, 2020): Same here. I'm adding more output. The actions are running at Github. ``` /w/t/flow_climate (develop ± ) ∫ act [15:04:51] [FlowClimateBuild/Tests ] 🚀 Start image=node:12.6-buster-slim [FlowClimateBuild/Linters] 🚀 Start image=node:12.6-buster-slim [FlowClimateBuild/Deploy ] 🚀 Start image=node:12.6-buster-slim [FlowClimateBuild/Deploy ] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [FlowClimateBuild/Linters] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [FlowClimateBuild/Tests ] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [FlowClimateBuild/Tests ] 🐳 docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace [FlowClimateBuild/Linters] 🐳 docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace [FlowClimateBuild/Deploy ] 🐳 docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace [FlowClimateBuild/Tests ] ⭐ Run Checkout code [FlowClimateBuild/Tests ] ✅ Success - Checkout code [FlowClimateBuild/Tests ] ⭐ Run Setup Ruby [FlowClimateBuild/Tests ] ☁ git clone 'https://github.com/ruby/setup-ruby' # ref=v1 [FlowClimateBuild/Deploy ] ⭐ Run actions/checkout@v2 [FlowClimateBuild/Deploy ] ✅ Success - actions/checkout@v2 [FlowClimateBuild/Deploy ] ⭐ Run akhileshns/heroku-deploy@v3.5.6 [FlowClimateBuild/Deploy ] ☁ git clone 'https://github.com/akhileshns/heroku-deploy' # ref=v3.5.6 [FlowClimateBuild/Linters] ⭐ Run Checkout code [FlowClimateBuild/Linters] ✅ Success - Checkout code [FlowClimateBuild/Linters] ⭐ Run Setup Ruby [FlowClimateBuild/Linters] ☁ git clone 'https://github.com/ruby/setup-ruby' # ref=v1 [FlowClimateBuild/Tests ] Unable to resolve v1: reference not found [FlowClimateBuild/Tests ] ❌ Failure - Setup Ruby ```
Author
Owner

@github-actions[bot] commented on GitHub (Jan 8, 2021):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:756474952 --> @github-actions[bot] commented on GitHub (Jan 8, 2021): Issue is stale and will be closed in 7 days unless there is new activity
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#37
No description provided.