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.

Caught error trying to update branch: Resource not accessible by integration

See original GitHub issue

Hey. We were trying out the action in our project and it doesn’t update the branch in PR (which belongs to a forked project) whenever a commit gets pushed to the repository.

I see the following error in the Actions tab

Handling push event on ref 'refs/heads/master'
PR-425
  Evaluating pull request #425...
  PR_FILTER=all, checking if this PR's branch needs to be updated.
  All checks pass and PR branch is behind base branch.
  Updating branch 'testing' on pull request #425 with changes from ref 'master'.
  Attempting branch update...
  ##[error]Caught error trying to update branch: Resource not accessible by integration
  Branch update failed, will retry in 300ms, retry #0 of 5.
  Attempting branch update...
  ##[error]Caught error trying to update branch: Resource not accessible by integration
  Branch update failed, will retry in 300ms, retry #1 of 5.
  Attempting branch update...
  ##[error]Caught error trying to update branch: Resource not accessible by integration
  Branch update failed, will retry in 300ms, retry #2 of 5.
  Attempting branch update...
  ##[error]Caught error trying to update branch: Resource not accessible by integration
  Branch update failed, will retry in 300ms, retry #3 of 5.
  Attempting branch update...
  ##[error]Caught error trying to update branch: Resource not accessible by integration
  Branch update failed, will retry in 300ms, retry #4 of 5.
  Attempting branch update...
  ##[error]Caught error trying to update branch: Resource not accessible by integration
  ##[error]Resource not accessible by integration

We are using the default yml config as mentioned in the documentation

Is this a limitation of this Github Action? Any help is really appreciated. Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
anarastcommented, Apr 10, 2021

Hey @RishabhJain2018, autoupdate doesn’t currently support the schedule event. I’ll create a new issue for it and we’ll look into it soon.

0reactions
RishabhJain2018commented, Apr 4, 2021

Hey @chinthakagodawita , I was trying to use schedule in the config and received this error – image

Am I missing something? Here is the config – https://github.com/Cloud-CV/EvalAI/blob/master/.github/workflows/autoupdate.yaml

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Resource not accessible by integration" · Issue #10 - GitHub
Ok, github needs to fix this. I'm facing the same thing while trying to create an action.
Read more >
"Resource not accessible by integration" on github post /repos ...
The first one is the one suggested by freenky , updating the GITHUB_TOKEN permissions in the workflow run using the permissions field in...
Read more >
Debug "Resource not accessible by integration" error when ...
This error basically talks about a permission issue. When working with Github apps, you may not have set the necessary permission to access...
Read more >
Resource not accessible by integration - GoReleaser
Let's see, for example, how it would look like for Homebrew Taps. We would need to change the workflow file: # .github/workflows/goreleaser.yaml ...
Read more >
Deploy to live & preview channels via GitHub pull requests
You can integrate deploys to Firebase Hosting via a GitHub Action. Here's what this GitHub Action can do for you: Creates a new...
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