Git Permissions Issue
See original GitHub issueHey there Crazy Max. I’m trying to publish the contents of my build
folder using this action. Here’s my configuration:
name: Publish
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
When I get to the publish action, I run into this error:
🏃 Deploying build directory to gh-pages branch on LandonSchropp/landonschropp.com repo
git init
/home/runner/work/landonschropp.com/landonschropp.com/build/.git: Permission denied
##[error]The process 'git' failed with exit code 1
##[error]Node run failed with exit code 1
It looks like the error is happening here. However, I can’t figure out why the build
directory would have any weird permissions. Did the action somehow get pointed the wrong place? Any ideas?
Thanks in advance!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Error: Permission denied (publickey) - GitHub Docs
A "Permission denied" error means that the server rejected your connection. There could be several reasons why, and the most common examples are...
Read more >File Permission issues with sharing a GIT Remote Repository
File Permission issues with sharing a GIT Remote Repository - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing ...
Read more >Fix "Permission Denied" Error From Github - Maxim Orlov
Fix "Permission Denied" Error From Github · Don't use sudo with git ♀️ · Avoid typos by copying the repository location · Make...
Read more >"Permission denied" error occurs when performing git ...
Problem. When using SSH to perform git operations on a repository hosted on Bitbucket Server, seemingly randomly the operation may fail with ...
Read more >How to Fix SSH “Permission Denied” with Git Clone - Medium
How to Fix SSH “Permission Denied” with Git Clone · Generate SSH Keys and Test SSH Authentication · Solution 1: Use HTTPS ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That did the trick! Thanks for all the help and for the explanation. 🙂
I also appreciate you pointing out cache and showing me your workflow. I wish I had seen that a few hours ago—it would have made this process much quicker.
Thanks again!
That’s strange, it seems to be working for me. 🤷