-
-
Notifications
You must be signed in to change notification settings - Fork 61
"Resource not accessible by integration" error #70
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
Comments
Hi, I'll take a look at this, but I haven't seen the "Resource not accessible by integration" error before. Please take a look at the https://github.com/php-actions/example-composer repository for a reference project that is known to be working. There are various different Actions YML configs in that project that test various different aspects. Would you be able to please check the permissions under Settings > Actions > Actions permissions ? |
It doesn't seem like I'm doing anything out of the ordinary compared with the example configurations from https://github.com/php-actions/example-composer. Also I checked the actions permissions on my repo, and while the options are slightly different from your screenshot, the repo has full Actions permissions: |
OK thanks for the update. I'll take a look into this. Is the repository in question open or closed source, and is it part of an organisation? |
Yes, the repo is private and is part of an organization. |
Please could you check in the organisation's settings page, as there are action-specific permissions in there. |
I'll reach out to Github Support for a resolution on this, as I can't replicate the issue, and the error message seems very specific. Two things to confirm beforehand:
|
P.S. I would also like to know which php-actions packages are available within your organisation, as I would expect a broken build for whatever reason should not be cached, but I'm not sure. |
|
Thanks for the info, I'm escalating this to Github as it seems to be an actions issue. Will report back here. |
I am experiencing the same issue on a public repo. I am new to Github actions (this is the first I have drafted one) so I'm not confident that the mistake is not mine. You can see the failing action at https://github.com/frictionlessdata/tableschema-php/runs/4734356485?check_suite_focus=true I had attempted to use the action from https://github.com/frictionlessdata/datapackage-php/blob/main/.github/workflows/ci.yml verbatim, but it failed with the same error. To verify the mistake is not mine, I simplified the action as much as I understood how. name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
name: frictionlessdata/tableschema-php test
steps:
- uses: actions/checkout@v2
- name: Validate composer.json & composer.lock
uses: php-actions/composer@v6
with:
command: validate --strict |
The problem is that the action depends on this bash script which at the end tries to push a docker image to the repository This depends on a few settings in GitHub, I would suggest to try and remove this dependency and allow to run without pushing a Docker image (via a specific option, or detect it fails and continue anyway) @adambiggs - I think you should make sure the organization has GitHub packages enabled properly, there are a few settings in the organization level regarding that (which are not included in the screenshots you sent) @courtney-miles - GitHub limits the permissions of actions running from forks to read-only, so you can't push to the source repository docker registry. I don't think anything can be done about that, just don't run the action from a fork.. |
Thank you @OriHoch that's really helpful. Github support have responded to me. Here's their advice:
So, if you could check the advice above, this will help us get closer to an answer. If you have the same error with the ghcr-publish action, we'll know it's config error as @OriHoch suggests. |
Seems like I'm affected too and I don't have any clue about how to solve this |
I am running into the same error too, on a private repository that is. I don't see any additional information I could provide to the extensive discussion above. But if, however, I can be of assistance please do let me know. |
Can anybody provide me with any help on this issue? I'm not sure how to continue. |
opened a PR which should fix it - php-actions/php-build#11 |
Thank you so much, @OriHoch - simple and effective. I'll include it in the next releases. |
Trying to get this action working, but I'm seeing "Resource not accessible by integration" errors on every build.
Neither of the fixes mentioned in #39 and #66 worked for me.
This is running on a private repo, using the
push
event, with the following config:The text was updated successfully, but these errors were encountered: