Using the GitHub REST API, which endpoint lists workflow runs for a specific workflow?
Select an answer to reveal the explanation.
Short Explanation and Infographic
The API follows the resource hierarchy: repos > actions > workflows > workflow_id > runs — nest it right to get the runs for one workflow.
Full explanation below image
Full Explanation
The GitHub REST API endpoint for listing workflow runs for a specific workflow is 'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs'. The workflow_id can be the numeric ID or the workflow file name (e.g., 'ci.yml'). To list all runs across all workflows in a repo, use 'GET /repos/{owner}/{repo}/actions/runs' (no workflow_id). Filter parameters include status, actor, branch, event, and created date range. Authentication uses GITHUB_TOKEN or a PAT with 'actions:read' permission. The response includes run IDs, status, conclusion, and timestamps.