lycheeverse / lychee-action

Github action to check for broken links in Markdown, HTML, and text files using lychee, a fast link checker written in Rust.
https://lychee.cli.rs
Apache License 2.0
292 stars 39 forks source link

Solution for "Error: Resource not accessible by integration" #194

Closed zcraber closed 1 year ago

zcraber commented 1 year ago

This is not a bug report.

Just sharing a solution, that worked for me. In case anyone gets the Error: Resource not accessible by integration while running the workflow, try this:

  1. Go to your repository Settings.
  2. Select General from Actions.
  3. Under Workflow permissions, check Read and write permissions.

image

Previously, repositories had this setting enabled by default. Seems like this has been changed.

mre commented 1 year ago

Huh, thanks for the heads-up. I wonder why write permissions are required by the action. We don't write anything except for the status report at the end of the run. We don't write anything to the repo itself. Anybody has an idea what's going on? We might need to add further instructions to the readme if this is a common problem.

I will reopen this issue as I'd like to get more feedback.

zcraber commented 1 year ago

Huh, thanks for the heads-up. I wonder why write permissions are required by the action. We don't write anything except for the status report at the end of the run. We don't write anything to the repo itself. Anybody has an idea what's going on? We might need to add further instructions to the readme if this is a common problem.

I will reopen this issue as I'd like to get more feedback.

I guess it's related to https://github.com/peter-evans/create-issue-from-file

image

mre commented 1 year ago

Do you still encounter this problem? I can't see any issues in any of the other pipelines so far.

zcraber commented 1 year ago

Do you still encounter this problem? I can't see any issues in any of the other pipelines so far.

Nope, it was solved when I enabled Read and write permissions

mre commented 1 year ago

Alright. Thanks for the update. Closing then.