Physical AI News (Japan)

Physical AI, robotics and compute — reported from Japan.

日本語
· Industry· 日本語で読む

GitHub documents specifications for workflow run APIs in Actions, including reruns and listing

GitHub’s official documentation describes REST APIs for handling workflow runs in Actions. Reruns require write permissions, while listing runs requires read permissions. Listing supports filters and can return up to 1,000 results for certain search criteria.

Key facts

  • Rerunning a job with a fine-grained token requires write permission for the repository’s “Actions” permission.
  • The documented success HTTP status code for rerunning a job is 201.
  • Listing runs with a fine-grained token requires read permission for the repository’s “Actions” permission.
  • Listing runs using the specified search criteria returns up to 1,000 results per search.
  • For listing runs, per_page is capped at 100 and defaults to 30.

What happened

GitHub’s official documentation describes REST APIs for listing GitHub Actions workflow runs, rerunning jobs and viewing logs. The rerun endpoint can rerun a specified job and its dependent jobs, while the listing endpoint can filter runs in a repository by specified criteria.

Why it matters

Implementations that automatically check and rerun workflow runs need different permissions for reading and rerunning. GitHub’s specifications require read permission for listing runs and write permission for rerunning jobs, so permissions must be configured according to the operations being used.

Analysis

One notable aspect of the specifications is that they distinguish between operations that view workflow runs and those that rerun them, requiring read and write permissions, respectively. A rerun covers not only the specified job but also dependent jobs, and requests can specify whether to enable debug logging and the debugger. Listing runs, meanwhile, requires read permission. Thus, API users can configure token permissions according to the functions they use, rather than applying the same permissions to status checks and execution operations. However, the documentation does not explain the operational goals behind this separation of permissions. Listing supports filters such as actor, branch, event, status and created. Depending on the search criteria, each search is limited to 1,000 results. The maximum number of results per page is also 100. These limits mean implementations that retrieve runs need to configure pagination and search criteria. Response examples include fields such as status, conclusion and run_number, but they are samples showing the format and do not report runs that actually occurred in a particular repository. The documentation gives 201 as the success response for reruns and 200 as the response in its listing example. Handling responses according to the type of operation is a point to check when implementing API clients. The material covers API specifications for workflow operations such as rerunning jobs and viewing logs, but does not describe their use in physical AI or robotics development, implementation examples or effects on performance. Therefore, this article does not provide enough information to determine how the APIs might relate to CI operations in robotics development; case studies or specific operational configurations would be needed to discuss actual use.

Details

Rerunning a job requires write permission for the repository’s “Actions” permission when using a fine-grained personal access token. OAuth app tokens and classic personal access tokens require the repo scope. A rerun request specifies owner, repo and job_id, and can also enable debug logging and the debugger. Both settings default to false, and the documented success response has HTTP status code 201. Listing runs requires read permission for the “Actions” permission and supports criteria such as actor, branch, event, status and created. Searches using actor, branch, check_suite_id, created, event, head_sha or status return up to 1,000 results per search. The maximum value for per_page is 100; the default is 30. The documentation also includes a response example with fields such as workflow run id, status, conclusion and run_number.

Sources

Translated from the Japanese original: /news/github-actions-no-waakufuroo-jikkou-api-saijikkou-to-ichiran-ce4199. The Japanese version is authoritative if they differ.