Act: Short SHAs are not working

Created on 6 May 2019  ยท  10Comments  ยท  Source: nektos/act

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
areaction kinbug

Most helpful comment

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

All 10 comments

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.

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

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

reopened.

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

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

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

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

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

Comment to keep this issue open.

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/[email protected]
[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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

helaili picture helaili  ยท  3Comments

dskvr picture dskvr  ยท  4Comments

HoughIO picture HoughIO  ยท  4Comments

lwille picture lwille  ยท  4Comments

justincy picture justincy  ยท  3Comments