GitHub Actions GetRun

GitHub Actions GetRun

Certified

Get a workflow run

Fetches a GitHub Actions workflow run by id and returns its status, conclusion and metadata. Optionally includes the jobs of the run with their own status and conclusion. The token needs the actions: read permission.

yaml
type: io.kestra.plugin.github.actions.GetRun

Get the status and jobs of a workflow run.

yaml
id: github_actions_get_run
namespace: company.team

tasks:
  - id: get_run
    type: io.kestra.plugin.github.actions.GetRun
    oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
    repository: my-org/my-repo
    runId: 123456789
    includeJobs: true

  - id: log_result
    type: io.kestra.plugin.core.log.Log
    message: "Run {{ outputs.get_run.runNumber }} is {{ outputs.get_run.status }} with conclusion {{ outputs.get_run.conclusion }}"
Properties

Target repository

Repository in owner/repo format containing the workflow run.

Run ID

Numeric id of the workflow run, for example the runId output of RunWorkflow.

GitHub App installation token

Installation access token generated by a GitHub App. Use this for repository-scoped app access instead of a user token.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

GitHub API endpoint

GitHub or GitHub Enterprise API base URL such as https://api.github.com or https://ghe.acme.com/api/v3. Set this when targeting GitHub Enterprise or a non-default API endpoint.

Defaultfalse

Include jobs

When true, also returns the jobs of the run with their status and conclusion.

GitHub JWT token

GitHub App JWT used for app-level authentication. Use this when the task should authenticate as the app rather than a user.

GitHub login

GitHub login used with oauthToken for authenticated requests. Leave unset when authenticating with jwtToken or appInstallationToken.

GitHub OAuth token

GitHub personal access token used for authenticated requests. Can be used alone or with login.

Conclusion

Run conclusion such as success or failure. Only set when the run is completed.

Formatdate-time

Created at

When the run was created.

Head SHA

Commit SHA the run was executed on.

Run URL

URL of the run on GitHub.

Jobs

Jobs of the run with id, name, status and conclusion. Only set when includeJobs is true.

Definitions
conclusionstring

Conclusion

Job conclusion such as success or failure. Only set when the job is completed.

idinteger

Job ID

Id of the job.

namestring

Name

Name of the job.

statusstring

Status

Job status such as queued, in_progress or completed.

Run ID

Id of the workflow run.

Run number

Sequential number of the run within the workflow.

Status

Run status such as queued, in_progress or completed.

Formatdate-time

Updated at

When the run was last updated.