"Error: An action could not be found at the URI" when attempting to reference a stand alone repo #24593
-
I created a repo in our org in order to create a ‘action container’ that could be generic enough to be used by any other repo’s in actions workflows. When I attempt to use the action container I get an error message:
Here is a minimalist overview of first repo that I made. The purpose of this repo is to create an action container for SnowSQL for use by other repos within our org. Repo
Dockerfile:
action.yml:
buildtime.sh:
I tested these files on local using Docker, when I build I see the ‘done!’ message from buildtime.sh. After confirming this works I pushed all 3 files to a repo within our org. Then, in another repo I attempted to use this action within a workflow. /some-repo-that-uses-snowsql:
Here’s the workflow file main.yml:
Now, when I push to Am unsure what other information to provide. How can I set up my workflow in order to reference my container action |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The error message is just saying that it can’t retrieve a snapshot of actions/checkout for the specified sha. I don’t know where this magic sha came from:
GavinCameron:
GitHub doesn’t believe in it. (Nor does Google!) If you want to pin to the current value (from main), you could use:
The latest release appears to be 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f Personally, I’ve switched to using @v2 – I don’t need the Dependabot PRs for each checkout bump. Note that GitHub changed the behavior for actions a while ago to not allow short shas, but what you haven’t isn’t a short sha. I suppose it could have been a custom commit in a fork of actions/checkout that was deleted, but in general such things don’t get GCd… |
Beta Was this translation helpful? Give feedback.
-
Hi jsoref. I think I’ve misunderstood something with actions. I’m having a d’oh Homer Simpson moment! I thought that I checkout from my own repo where I created the action. It looks like I need to checkout actions from a universal, widely used by all repo GitHub - actions/checkout: Action for checking out a repo.
Right! That’s the commit from my own repo at I’m going to try that out today, thanks for the indirect tip |
Beta Was this translation helpful? Give feedback.
-
But if I use GithubActions and the secrets doesn’t work for me in order to connect with private key. It is necessary to set a path but the secret has the key-value. How could this work? env: But when calling ~/bin/snowsql -q “use role $SNOWSQL_ROLE” -o friendly=false --private-key-path $SNOWSQL_RSA_PRIVATE_KEY I got the error Path ‘’ does not exist " Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
@sikz1127 I don’t have an answer but can tell you what I did. Rather than refer to secrets in the Dockerfile, I instead used the entrypoint. entrypoint.sh:
Also note you have a typo: |
Beta Was this translation helpful? Give feedback.
-
@GavinCameron Thank you for your reply, I will try it |
Beta Was this translation helpful? Give feedback.
Hi jsoref. I think I’ve misunderstood something with actions. I’m having a d’oh Homer Simpson moment!
I thought that I checkout from my own repo where I created the action. It looks like I need to checkout actions from a universal, widely used by all repo GitHub - actions/checkout: Action for checking out a repo.
Right! That’s the commit from my own repo at
<ourorg>/my-ssql-container-action
whereas thanks to your comment I now realize I need to use this universally used actions repo that you linked to.I’m going to try that out today, thanks for the indirect tip