Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpError: Resource not accessible by integration #446

Closed
Yikun opened this issue Oct 7, 2022 · 7 comments
Closed

HttpError: Resource not accessible by integration #446

Yikun opened this issue Oct 7, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@Yikun
Copy link

Yikun commented Oct 7, 2022

Error: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration

This error always happened since yesterday (before yesterday, it works for many years):

https://github.com/apache/spark/actions/runs/3200342170/jobs/5227121801
https://github.com/apache/spark/actions/runs/3200342170/jobs/5227121801

@tustvold
Copy link

tustvold commented Oct 7, 2022

Updating to v4.0.2 at least appears to fix this

@Yikun
Copy link
Author

Yikun commented Oct 7, 2022

@tustvold Thanks, we also fixed by setting permission explicitly

permissions:
    contents: read
    pull-requests: write

see more in apache/spark#38138

is it stable?

@tustvold
Copy link

tustvold commented Oct 7, 2022

I spoke too soon, will try your fix 😅

@MaksimZhukov
Copy link
Contributor

Hello @Yikun !
Sorry for the late response!
It looks like you found out a solution. Can this issue be closed?

@Yikun
Copy link
Author

Yikun commented Nov 3, 2022

@MaksimZhukov Yes, the issue had already resolved, but I'm still not sure it's a real problem or not, but it had real have behavior changes.

Maybe it should be closed by #314, I guess?

@MaksimZhukov MaksimZhukov added the bug Something isn't working label Dec 12, 2022
@MaksimZhukov
Copy link
Contributor

Here is the statement from the GitHub documentation:

The permissions for the GITHUB_TOKEN are initially set to the default setting for the enterprise, organization, or repository. If the default is set to the restricted permissions at any of these levels then this will apply to the relevant repositories. For example, if you choose the restricted default at the organization level then all repositories in that organization will use the restricted permissions as the default. The permissions are then adjusted based on any configuration within the workflow file, first at the workflow level and then at the job level.

I've created a workflow file without specifying the permissions key. Everything worked fine as long as my default permissions granted to GITHUB_TOKEN were permissive. It seems to me that your organization has restricted the default GITHUB_TOKEN permissions.

Also, I would like to mention that it is recommended to specify the permissions key in workflow file to configure the minimum required permissions for a workflow or job. This section was also included in the example in the README file in scope of the PR you mentioned.

I am closing the issue. Please contact us if you have any concerns.

@Yikun
Copy link
Author

Yikun commented Dec 20, 2022

@MaksimZhukov Thanks for your help and info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants