Action showing permission denied #26239
-
I had many environmental variables so I used to gpg to encrypt those variables in a file. I then made a script to decrypt that file and to store it the backend folder of my project during the run of the action All this are to happen in the github action (see below the yml file) That script of mine looks something like this:
My script is running well when I am executing this command in the project root
But it fails during the github action My
It is giving me this error: How can I fix this ? Please help |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
That most likely means that your You can tell git to add the permission anyway with this command:
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @airtower-luna |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! This solved the issue for me too! Any tips on how to do this by default on a Windows machine for bash scripts? |
Beta Was this translation helpful? Give feedback.
-
manpreetsinghminhas:
How do you mean “by default”? If you mean marking scripts as executable, no. Unix-ish systems don’t do that either, it’s just that there you automatically notice if something isn’t marked as executable but should. You could try to make a pre-commit hook with some sort of heuristic to detect scripts, but I doubt it’s worth the effort. |
Beta Was this translation helpful? Give feedback.
-
Thanks @airtower-luna |
Beta Was this translation helpful? Give feedback.
-
This one worked very well for me too, thanks |
Beta Was this translation helpful? Give feedback.
-
Hi guys, how about ubuntu?
|
Beta Was this translation helpful? Give feedback.
That most likely means that your
./.github/scripts/backend_decrypt.sh
script doesn’t have the “execute” filesystem permission set. I assume you’re developing on Windows locally, which doesn’t have that kind of permission system.You can tell git to add the permission anyway with this command:
update-index
is similar toadd
in that it adds the change to the index, so you’ll have to commit and push as usual.