Skip to content

Dataset

GitHub Actions workflow run and log datasets for AI training

A GitHub Actions dataset is a collection of a company's workflow files and the record of each workflow run: run attempts, jobs, steps, statuses, timings, log text, annotations and uploaded artifacts, each tied to the commit and event that triggered it. SourceX sources it to a buyer's spec from established businesses that run GitHub Actions on private repositories, and a spec can ask for the repository history the runs refer to. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Workflow files and their runs: attempts, jobs, steps, log text, annotations and artifacts, tied to commit and event
Typical systems
GitHub Actions on GitHub Enterprise Cloud, Team or Enterprise Server, with GitHub-hosted or self-hosted runners
Typical history
Set by the retention setting: 90 days by default, up to 400 on private repositories; longer only where logs were archived elsewhere
Modality
Plain text job logs, structured run, job and step records, and workflow YAML
Delivery formats
Agreed per order; run, job and step records as JSONL, logs as text files per job, artifacts as zip
Preparation
Logs scanned for tokens and credentials; runner names, internal hosts, logins and repository names pseudonymized
Licensing
Scoped per repository; depends on the owner's rights in the code and logs and on GitHub's terms
Availability
Sourced to your spec from businesses that run GitHub Actions; supply is not guaranteed
TextIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
workflow_runobjectThe Workflow run: pseudonymous id, run_number, display_title, created_at and run_started_at.
workflow_pathstringThe Workflow's path, such as .github/workflows/ci.yml, with the file as it stood at the commit the run used.
eventstringThe Workflow run's event: push, pull_request, schedule, workflow_dispatch and others.
head_shastringThe Workflow run's head_sha, delivered with head_branch and the head commit message.
run_attemptintegerThe Run attempt number, starting at one and raised by each re-run of the same Workflow run.
conclusionenumThe Workflow run's conclusion, such as success, failure, cancelled, skipped or timed_out.
actorsobjectThe Workflow run's actor and triggering_actor, which differ when someone else re-ran it.
job_recordsarrayEach Job: name, conclusion, started_at, completed_at, labels, runner_name and runner_group_name.
step_recordsarrayThe Step list inside each Job: number, name, status, conclusion and start and end times.
job_log_textstringThe plain text log of one Job, taken from the Log archive or the job logs endpoint.
annotationsarrayAnnotation records on the Job's Check run: path, start_line, annotation_level, title and message.
check_suite_refobjectThe check_suite_id of the run and the Check run of each Job, which tie results to a commit.
artifact_listarrayEach Artifact: name, size_in_bytes, created_at, expires_at, the expired flag and digest.
deploymentobjectThe Deployment a Job created, with its environment name and status, where the workflow deploys.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "workflow_run": {
    "id": "run_60418",
    "run_number": 2291,
    "display_title": "Fix timezone handling in shift export",
    "run_started_at": "2025-08-19T14:02:11Z"
  },
  "workflow_path": ".github/workflows/ci.yml",
  "event": "push",
  "head_sha": "4be19c7",
  "run_attempt": 2,
  "conclusion": "success",
  "actors": {"actor": "user_212", "triggering_actor": "user_087"},
  "job_records": [
    {
      "name": "test (node 20)",
      "run_attempt": 1,
      "conclusion": "failure",
      "runner_name": "runner_a14",
      "labels": ["self-hosted", "linux"]
    },
    {
      "name": "test (node 20)",
      "run_attempt": 2,
      "conclusion": "success",
      "runner_name": "runner_a09",
      "labels": ["self-hosted", "linux"]
    }
  ],
  "step_records": [
    {
      "number": 4,
      "name": "Run integration tests",
      "run_attempt": 1,
      "conclusion": "failure",
      "completed_at": "2025-08-19T14:11:02Z"
    }
  ],
  "job_log_text": "2025-08-19T14:10:58.1102311Z FAIL tests/export/shift.test.ts\n2025-08-19T14:10:58.1104820Z   connect ETIMEDOUT [HOST]:5432\n2025-08-19T14:11:02.0412206Z ##[error]Process completed with exit code 1.",
  "annotations": [
    {
      "path": ".github",
      "start_line": 1,
      "annotation_level": "failure",
      "message": "Process completed with exit code 1."
    }
  ],
  "check_suite_ref": {"check_suite_id": "cs_77102"},
  "artifact_list": [
    {
      "name": "junit-report",
      "size_in_bytes": 48213,
      "expires_at": "2025-11-17T14:11:30Z",
      "expired": false
    }
  ],
  "deployment": null
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train failure diagnosis on real logs

A failed job's log, its failing step and the attempt or commit that turned it green form one diagnosis example.

Separate flaky failures from broken code

A run that fails and then passes on a later attempt at the same head_sha is marked by run_attempt, with no labeling work.

Teach agents to repair workflow files

Runs before and after a change to a workflow YAML show which edits fixed a pipeline and which broke it.

Build CI repair evaluations

A red run on one commit and a green run on the next give a task and a reference fix from a private repository.

Model build time and queueing

Job and step timestamps, runner labels and matrix job names support work on caching, scheduling and cost.

Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents

What makes this data valuable

Logs present for failures

Failed jobs arrive with log text, since a conclusion alone teaches little.

All attempts kept

Earlier attempts of re-run jobs are delivered with their own logs and timings.

Commits resolve

Each head_sha exists in the delivered repository history.

Workflow file at the run's commit

The YAML is delivered as it stood when the run started, including reusable workflows it called.

Job boundaries intact

Log text stays split per job and attempt, as in the archive.

Known retention

The retention setting, and where older logs were archived, is stated.

Record timeline

GitHub Actions dataset

This page covers gitHub Actions workflow runs and logs.Illustrative

Every run names its event, commit and attempt

A workflow run in GitHub Actions carries its own join keys. The run record holds the event that triggered it, head_sha and head_branch, a run_number that counts runs of that workflow, a run_attempt and the id of its check suite. A re-run does not create a new run. It raises run_attempt on the same one and, by GitHub's documentation, uses the same commit and ref as the original event. A job that fails on attempt one and passes on attempt two therefore ran against the same commit, which points to a flaky test, a runner fault or an outside dependency. A failure followed by a new run on the same branch at a different head_sha points to a fix, and the diff between the two commits is the candidate.

Three details change how those keys should be read. For pull_request events, GITHUB_SHA is the last merge commit of the pull request's merge branch, a test merge of head into base, so the tree a job built can differ between two runs of the same head as the base moves. Workflows do not run on pull_request activity while the pull request has a merge conflict, so a missing run is not a pass. And when only failed jobs are re-run, the new attempt holds those jobs and their dependents, and listing jobs returns the latest execution unless every attempt is requested.

The definition is recoverable as well. A run records the path of its workflow file and any reusable workflows it referenced, so the YAML as it ran can be read from the repository, though not always at head_sha. On pull_request the job runs the test merge, and GitHub documents schedule, workflow_run and pull_request_target runs as using the last commit on the default branch, so ask which commit each workflow file was read from. What the file called is another matter. Steps that use third-party actions run code that belongs to someone else and, unless pinned to a commit SHA, is resolved when the job starts, so a step can change behavior with no commit in the company's repository.

Logs expire on a retention setting, and arrive as zip files of text

GitHub deletes run logs and artifacts after a retention period. The default is 90 days, it can be set between 1 and 400 days for private repositories at repository, organization or enterprise level, and a change applies only to new runs. GitHub's documentation also describes extending the same policy to checks, workflow runs and commit statuses, which had been kept longer than logs, so ask whether the run and job records in a sample outlive their log text or stop at the same date. The workflow files keep their full git history, so a company can have years of YAML and months of runs. Longer histories exist only where the business shipped logs to its own storage or a log platform. A move between GitHub products cuts history too: GitHub lists workflow run history and artifacts among the things its repository migration tool does not carry.

The run logs endpoint redirects to a zip archive of log files, and the job logs endpoint to a plain text file for one job. An archive taken after a partial re-run holds only the re-run jobs, and earlier attempts have their own endpoints while they are retained. Step timings, annotations and artifact metadata are JSON from other endpoints and are not inside the zip. Artifacts download as zip and carry an expired flag once they are gone. Log lines are raw runner output with timestamp prefixes, group markers and error commands. Values registered as secrets are replaced with asterisks, GitHub redacts a documented list of credential formats, and anything else a script printed, such as an internal host name or a password read from a file, is ordinary text.

To test a sample, compare the earliest run with logs against the stated retention setting. Count failed jobs that have log text. Find runs with more than one attempt and check that each attempt has its own jobs and logs. Resolve several head_sha values in the repository. Then search the logs for tokens and host names.

What to check before licensing

  • Ask for the retention setting at repository, organization and enterprise level, when it last changed, and where logs older than that were archived.
  • Check logs for printed secrets, tokens, internal host names and connection strings. Masking covers values registered as secrets, so ask what else was scanned for and with which tool.
  • Read GitHub's terms on API use and exported data for the supplier's plan. Buyer and data owner both check.
  • Ask whether logs of earlier run attempts were captured, since a partial re-run's archive holds only the jobs that ran again.
  • Confirm the repository history behind each head_sha is included, and for pull request runs ask whether the base commit of the test merge was recorded.
  • Ask which third-party actions and reusable workflows the runs called, and confirm the business owns the workflow files, scripts and build outputs it is licensing.
  • Review what artifacts contain before accepting them. Build outputs, test reports and coverage files can hold third-party code, customer fixtures or credentials.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How far back do GitHub Actions logs go?

As far as the retention setting allows. GitHub deletes logs and artifacts after a retention period, 90 days by default, which an organization can set between 1 and 400 days for private repositories. Git history of the workflow files is unaffected, so definitions go back much further than runs. Longer log histories exist only where the business archived logs to its own storage, so state the depth you need in the spec.

Can a failed run be matched to the commit that fixed it?

Usually, from fields the run already carries. Each run records its event, branch, head_sha and attempt number. A later successful run of the same workflow on the same branch at a new head_sha points to the fixing commit, and the repository supplies the diff. A pass on a re-run of the same commit points to a flaky test or runner fault instead.

What format do GitHub Actions logs come in?

Plain text. The API returns a zip archive of log files for a run, or a single text file for one job. Lines carry timestamps and the runner's own markers for groups and errors. Step boundaries, timings, annotations and artifact lists come separately as JSON, so a usable delivery joins the text of each job to its step records and attempt number.

Are secrets already masked in the logs?

Only partly. GitHub replaces values that were registered as secrets and redacts a documented list of token formats. It cannot know about a password read from a file, a host name, or a secret that was transformed before printing. Treat exported logs as unscanned until the supplier shows what was searched for, and run your own scan on the sample.

Does GitHub Actions store test results as structured records?

No. The run, job and step records hold no test result object. Test outcomes appear as log text, as annotations on a job's check run, or as report files such as JUnit XML that a workflow chose to upload as artifacts. Those artifacts expire with the retention period. If you need per-test results, ask whether reports were uploaded and whether they survive.

Is SourceX affiliated with GitHub or Microsoft?

GitHub Actions is named to identify the system the records come from. That does not imply a partnership with or endorsement by GitHub or Microsoft. The records belong to the business that runs GitHub Actions, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies