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

Fails with "Error: Resource not accessible by integration" #149

Closed
kpturner opened this issue Dec 16, 2021 · 5 comments
Closed

Fails with "Error: Resource not accessible by integration" #149

kpturner opened this issue Dec 16, 2021 · 5 comments

Comments

@kpturner
Copy link

kpturner commented Dec 16, 2021

When I try to publish my mocha-json results I get this error. No clues as to the cause in the logs though.

Run dorny/test-reporter@v1
  with:
    name: UI Unit Test Results Linux-ubuntu1804-x86_64
    path: common/apps/ui/**/ui-test-results.json
    reporter: mocha-json
    fail-on-error: false
    path-replace-backslashes: false
    list-suites: all
    list-tests: all
    max-annotations: 10
    only-summary: false
    token: ***
  env:
    VERSION: 9.0.1-419-g103764bM
    PLAT: Linux-ubuntu1804
    ARCH: x86_64
Check runs will be created with SHA=103764b486215b834c933ce803b46b29fbd1a276
Listing all files tracked by git
Found 10948 files tracked by GitHub
Using test report parser 'mocha-json'
Creating test report UI Unit Test Results Linux-ubuntu1804-x86_64
  Processing test results from common/apps/ui/ui-test-results.json
  Creating check run UI Unit Test Results Linux-ubuntu1804-x86_64
Error: Resource not accessible by integration
@kpturner
Copy link
Author

Looks like this is caused by the permissions on the job

    permissions:
      id-token: write
      contents: read

@sturman
Copy link

sturman commented Jan 4, 2022

@kpturner, looks like the dorny/test-reporter actions requires checks: write permissions to post a check with test reports so please add it to your workflow

permissions:
  id-token: write
  contents: read
  checks: write

@kpturner
Copy link
Author

kpturner commented Jan 4, 2022

Yeah I spotted that and closed the issue :)

@puneet0191
Copy link

I tried using the suggested approach, but it still doesn't work for a our Repo's

@hilmarf
Copy link

hilmarf commented Jun 28, 2022

#174

stevensnoeijen added a commit to stevensnoeijen/drotr that referenced this issue Aug 24, 2022
stevensnoeijen added a commit to stevensnoeijen/drotr that referenced this issue Aug 24, 2022
codecop added a commit to codecop/Refactoring-Kata-Lift-Pass-Pricing that referenced this issue Oct 1, 2022
hientranea pushed a commit to hientranea/kotlin-quarkus-realworld-example-app that referenced this issue Oct 3, 2022
hientranea pushed a commit to hientranea/kotlin-quarkus-realworld-example-app that referenced this issue Oct 3, 2022
hientranea pushed a commit to hientranea/kotlin-quarkus-realworld-example-app that referenced this issue Oct 3, 2022
rpatterson added a commit to rpatterson/project-structure that referenced this issue Jan 5, 2023
czunker added a commit to mondoohq/mondoo-operator that referenced this issue Feb 15, 2023
This partially reverts #742

Permission are taken from these:
dorny/test-reporter#149
mondoohq/cnquery#105
https://github.com/helm/chart-releaser-action\#example-workflow

Signed-off-by: Christian Zunker <christian@mondoo.com>
czunker added a commit to mondoohq/mondoo-operator that referenced this issue Feb 15, 2023
This partially reverts #742

Permission are taken from these:
dorny/test-reporter#149
mondoohq/cnquery#105
https://github.com/helm/chart-releaser-action\#example-workflow

Signed-off-by: Christian Zunker <christian@mondoo.com>
dislocated-su added a commit to dislocated-su/ENG1-2 that referenced this issue Feb 17, 2023
radoslaw-szpiech added a commit to vegaprotocol/vegawallet-desktop that referenced this issue May 17, 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

No branches or pull requests

4 participants