-
Notifications
You must be signed in to change notification settings - Fork 21
Failure due to Error: Resource not accessible by integration
#4
Comments
I forgot to say that the failure happens for pull requests generated by forks. |
Replacing the standard |
I reproduced it with my toy repo, honestly I hoped it would just work :) |
Thanks for testing @alekspickle 👍🏻 |
Just for your information, there's no way that a workflow triggered by a What I did was to trigger a Here's an example: https://github.com/robotology/icub-main/blob/master/.github/workflows/cancel-ci-draft-pr.yml. |
This particular case may be solved even without cancelling the workflow — a condition like this added to the if: >-
!( (github.event_name == 'pull_request') && github.event.pull_request.draft ) The real problem is when the workflow actually has multiple jobs (not just a single job with a matrix), there is some parallelism in the job dependencies (so multiple different jobs can be running at the same time), and you want to cancel the whole workflow immediately when one of those jobs fails:
|
Hi @sigprof I know that one can use the I didn't check honestly if it could have worked out and I explored some more articulated options with the idea that I wanted to make the job show up eventually as canceled in the action dashboard instead of being marked as failed. Long story short, I learned a lot and came up with a solution based on the Check out https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run for more details, especially for what regards the possibility to run a workflow based on the conclusion of another workflow. |
Looks like the cancel action workflow can't run on forks due to secrets. See andymckay/cancel-action#4
* refactor: remove stylelint * refactor: move shellcheck to separate job * refactor: add helm script and job * refactor: add eslint job and yarn script * fix(test/tsconfig): exclude test-plugin * refactor: delete lint, add typecheck job * refactor: remove prebuild * wip: add notes about unit test refactor * refactor: delete buggy socket test This test was really added to in get cover specific lines but it's buggy and only passes sometimes locally. I think it's okay to remove because: - it's an implementation detail (not user facing) - not preventing any specific regressions * refactor: move test-plugin to integration suite This seems more appropriate given this tests how a plugin might work within code-server. * wip * wip: refactor vscode integration tests * refactor: move unit tests to separate job * fix: formatting * Revert "wip: refactor vscode integration tests" This reverts commit 13286bf. * Revert "refactor: move unit tests to separate job" This reverts commit 6c87b54. * feat: collect codecov integration tests * fixup! feat: collect codecov integration tests * fixup! feat: collect codecov integration tests * fixup!: move helm step * fixup!: update ids for caching * trigger ci * trigger ci * chore: clean up names in security.yaml * fixup!: remove .tsx * fixup!: change to src/**" * fixup!: move helm cmd to yaml * fixup!: always build test plugin * fixup!: fix plugin typings * fixup! add back flakey test * fixup!: only install helm deps if changes * fixup!: revert node mod caching * dont keep, test for asher * fixup!: add make to centos * refactor: add test:native This adds a new script to run native tests (i.e. --help which should run in ci on all platforms). * try updating glibc * try 2.25 * Revert "refactor: move test-plugin to integration suite" This reverts commit bc02005. I couldn't get past some GLIBC errors in CI so moving back to unit tests. * Revert "try updating glibc" This reverts commit 02ed560. * fixup! * asher: again * try this for ts changes * fixup * refactor: scripts.yml -> scripts.yaml * fixup!: move lint-sh to scripts.yaml * fixup!: use apk for lint scripts * fixup! fixup!: use apk for lint scripts * fixup!: remove typecheck step * fix: pattern for lint ts files * test: lint should fail * fixup! fixup!: use apk for lint scripts * Revert "test: lint should fail" This reverts commit 158c64d. * fixup!: skip cancel workflow on forks Looks like the cancel action workflow can't run on forks due to secrets. See andymckay/cancel-action#4 * fixup: remove cancel-workflow * fixup! fixup! fixup!: use apk for lint scripts * fixup! fixup! fixup!: use apk for lint scripts * fixup!: fix yarn key * fixup!: add fetch-depth 0
Glad you found a workaround for your case 👍🏾 |
I'm still getting the Wondering if this issue persists to someone else? |
Yeah, I get this when using certain actions (in my case |
upgrading to 0.3 fixed this for me. If this action had a v0 tag I wouldn't have even seen this bug. Just saying. |
On
|
when we tried to permission, job fails to checkout:
when adding:
at the job level |
As per the title:
Here's the relevant snippet: https://github.com/robotology/icub-main/blob/master/.github/workflows/ci.yml#L35-L37.
Just posting a snapshot too as I'm very likely going to patch it.
The text was updated successfully, but these errors were encountered: