question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git Permissions Issue

See original GitHub issue

Hey 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LandonSchroppcommented, Nov 11, 2019

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!

0reactions
LandonSchroppcommented, Nov 11, 2019

That’s strange, it seems to be working for me. 🤷

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found