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.

support: Can't deploy a Hugo site due to "The requested URL returned error: 403"

See original GitHub issue

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

I have a personal repo and I want deploy this site. But I can’t due to The requested URL returned error: 403 error. Why it happens? What am I missing to successfully deploy my site? As I understand:

  • site is being built to public folder
  • this folder contents is pushed to gh-pages
  • gh-pages is used to deploy site

Is it right? Why there is no gh-pages branch created after any new commit?

Relevant links

Public repository: https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io
YAML config: https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io/blob/master/config.yml
YAML workflow: https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io/blob/master/.github/workflows/cd.yml

Relevant log output

https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io/runs/6324319546?check_suite_focus=true#step:5:106

Additional context.

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
peaceiriscommented, May 6, 2022

This is the same as the issue https://github.com/peaceiris/actions-gh-pages/issues/742#issuecomment-1114440714

Please change the repository setting (Go to Actions > General > Workflow permissions) as follows:

  • Toggle the Read and write permissions

スクリーンショット 2022-05-06 23 26 07

4reactions
yashash-pugaliacommented, May 10, 2022

Please change the repository setting (Go to Actions > General > Workflow permissions) as follows:

  • Toggle the Read and write permissions

would be nic if a notice about this is added to the documentation

Read more comments on GitHub >

github_iconTop Results From Across the Web

The requested URL returned error: 403 Forbidden #39 - GitHub
403 means credentials errors or that you don't have permission to push.
Read more >
How to solve the requested URL returned error: 403 in git ...
This is basically an auth issue and git had stored my creds for both bitbucket and github. All I had to do was...
Read more >
What Is the 403 Forbidden Error and How to Fix It (8 Methods ...
403 Forbidden – you don't have permission to access this resource is an HTTP status code that occurs when the web server understands...
Read more >
Netlify Site Does Not Deploy - support - Hugo Discourse
I'm having a lot of trouble trying to get my site to deploy on Netlify. Running into errors like… Error: Unable to find...
Read more >
How to Fix a 403 Forbidden Error on Your WordPress Site
The 403 Forbidden error indicates that the server understood the request but refuses to authorize it. Find out more about the causes and ......
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