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

Document how to get around "Resource not accessible" error in Github actions #28

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Document how to get around "Resource not accessible" error in Github actions #28

merged 1 commit into from
Jul 25, 2023

Conversation

paul-hansen
Copy link
Contributor

Fixes #26

@paul-hansen paul-hansen mentioned this pull request Mar 11, 2023
@rparrett
Copy link
Contributor

rparrett commented Mar 13, 2023

Should we be specifying the required permissions in the workflow instead?

This seems sort of new / I don't remember having to do this previously.

https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token

edit: pretty sure this won't help

@rparrett
Copy link
Contributor

rparrett commented Mar 13, 2023

Is it possible that this was only required because it was being tested in a fork? I suppose either way, adding this message is harmless.

@paul-hansen
Copy link
Contributor Author

Is it possible that this was only required because it was being tested in a fork?

I think it's likely that it is because it's a fork but I created it using the big green "Use this template" button on GitHub so it's pretty likely that others would run into it too.
image

This seems sort of new / I don't remember having to do this previously.

It could also be a recent thing, though this is my first time using it as a template. When I used this for the bevy jam 2, I added it to an existing project and I didn't run into it then.

Should we be specifying the required permissions in the workflow instead?

If that's possible that would be ideal! Didn't know that might be a thing when I wrote this PR.

@rparrett
Copy link
Contributor

rparrett commented Mar 13, 2023

It could also be a recent thing, though this is my first time using it as a template.

Good point. Actually, I haven't tested this as a template before, but I can confirm that I see the same thing when using the "Use this template" button.

It seems like this might be an old issue with actions-rs/clippy-check though.

actions-rs/clippy-check#2

Which apparently needs some sort of write perms to annotate commits.

@rparrett
Copy link
Contributor

Pinging @mockersf for github CI expertise. Is it an issue to instruct users to add these permissions?

They don't seem to be the default even for non-forked repos.

This also seems to be a problem with the release workflow, so moving away from actions-rs/clippy-check doesn't seem like a solution.

@alice-i-cecile alice-i-cecile merged commit 1b5cf1b into bevyengine:main Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github Actions: "Error: Resource not accessible by integration"
4 participants