GithubHelp home page GithubHelp logo

Comments (9)

dacbd avatar dacbd commented on June 2, 2024 4

It looks like that app needs an additional scope it might not have? https://docs.github.com/en/rest/actions/workflow-runs#list-workflow-runs-for-a-repository

@mikolajpabiszczak to confirm is an issue with app generated token can you try and curl the endpoint with one of the generated tokens?

curl \
  -H "Accept: application/vnd.github+json" \ 
  -H "Authorization: token <TOKEN>" \
  https://api.github.com/repos/OWNER/REPO/actions/runs

from cml.dev.

dacbd avatar dacbd commented on June 2, 2024 2

we might need to update our guide for using a github app?
image

from cml.dev.

mikolajpabiszczak avatar mikolajpabiszczak commented on June 2, 2024 2

Did some tests, indeed the culprit was the lack of sufficient permissions: after adding Read and write permissions for Actions the workflows work again.

Thx for your time and help! And yes, the guide needs an update in this case. ;D

from cml.dev.

DavidGOrtega avatar DavidGOrtega commented on June 2, 2024

👋 @mikolajpabiszczak the reason is because the runner has been marked to do just one job with the parameter --single the option that you might be looking for is --reuse

from cml.dev.

mikolajpabiszczak avatar mikolajpabiszczak commented on June 2, 2024

@DavidGOrtega: I do know that. So let me emphasise this again:

  1. the problem is not about single vs. reusable (I know and understand the difference between those). In both cases the workflow does not work (and it worked 3 months ago). I used reusable only to collect the logs provided and to see whether GitHub sees the runner (it does not: it marks it as offline). In fact all the workflows (using CML) that I tested do not work (but worked 3 months ago)

  2. Moreover, if I use the reusable runner, and I try to run the failed job again it does not pick up the already existing runner (bc. GitHub sees it as offline).

  3. In case I use single the instance does not get cancelled after the failure, I have to terminate it manually.

(I added some clarifications in the opening message)

from cml.dev.

DavidGOrtega avatar DavidGOrtega commented on June 2, 2024

@mikolajpabiszczak
You have in your logs

Jul 22 11:37:30 ip-172-31-32-70 cml.sh[2440]: {"level":"error","message":"HttpError: Resource not accessible by integration","stack":"Error: HttpError: Resource not accessible by integration\n    at process.<anonymous> (/snapshot/cml/bin/cml/runner.js:333:32)\n    at process.emit (node:events:539:35)\n    at emit (node:internal/process/promises:140:20)\n    at processPromiseRejections (node:internal/process/promises:274:27)\n    at processTicksAndRejections (node:internal/process/task_queues:97:32)","status":"terminated"}

There must be something that you do not have permissions to do with your token?
Then the unregistering can not happen yet because there is still a job in play

from cml.dev.

DavidGOrtega avatar DavidGOrtega commented on June 2, 2024

Just to be sure and move one step forward can you please your REPO_TOKEN? Does it have all all the permissions?

from cml.dev.

mikolajpabiszczak avatar mikolajpabiszczak commented on June 2, 2024

These were not changed since the working runs, but I checked it again. We are using a company application, so checking up wrt. this list

Repository level:

  • administration (read and write)
  • checks (we are not using cml send-github-check)
  • pull requests (read and write)

Organisation level:

  • self-hosted runners (read and write)

Additionally, in the repository settings:

  • all actions are allowed
  • and workflows have read and write permissions

from cml.dev.

dacbd avatar dacbd commented on June 2, 2024

@mikolajpabiszczak thanks for the report and help, we'll keep this open until we update the docs

from cml.dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.