GitHub Actions

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

GitHub Actions is the automation platform built into GitHub: a workflow, defined as YAML in .github/workflows/, runs jobs on a runner whenever an event such as a push, a pull request, a tag, a schedule or a manual dispatch occurs. It is the usual way to build, test, scan and publish a repository hosted on GitHub. This subsection is a reference for developers who already use Git and GitHub and want to write, secure and maintain real pipelines: it covers the workflow language first, then the execution model (jobs, runners, caching), then credentials and deployment, then reuse, hardening and releases.

Version baseline

Checked against the official release feeds and runner-images repository on 2026-11-10.

Component Version

ubuntu-latest

Ubuntu 24.04 (ubuntu-26.04 also available)

windows-latest

Windows Server 2025

macos-latest

macOS 26 (arm64)

Actions runner application

2.338.x

actions/checkout

v7

actions/setup-node

v7

actions/setup-java

v6

actions/setup-python

v7

actions/setup-dotnet

v6

actions/setup-go

v7

actions/cache

v6

actions/upload-artifact / actions/download-artifact

v7 / v8

actions/github-script

v9

actions/attest-build-provenance

v4

actions/configure-pages / upload-pages-artifact / deploy-pages

v6 / v5 / v5

github/codeql-action

v4

aws-actions/configure-aws-credentials

v6

google-github-actions/auth

v3

azure/login

v3

docker/build-push-action

v7

pypa/gh-action-pypi-publish

release/v1

gradle/actions

v6

central-publishing-maven-plugin

0.12.0

actionlint

1.7.12

Runner images change weekly, so the preinstalled tool versions are not listed here; read the runner-images repository for the image in use. On any discrepancy the current official documentation is the authority.

What’s covered

Running example

The running example is this documentation site’s own pipeline: the publish workflow in .github/workflows/publish.yml, which runs every night at 03:00 UTC, installs Node.js and Antora with its extensions, validates the Mermaid diagrams, builds the site into build/site and pushes it to the gh-pages branch. A twin workflow, manual_publish, runs the same steps on workflow_dispatch. Each page explains the existing workflow through its topic and then shows, as a proposal, how it could be improved: more triggers and concurrency control, an npm cache, least-privilege permissions, SHA-pinned actions, a Pages environment and a shared reusable workflow.

flowchart LR ev["schedule 03:00 UTC
or manual dispatch"] --> co["checkout"] co --> node["setup-node 24"] node --> inst["install Antora
and extensions"] inst --> val["validate Mermaid"] val --> bld["antora antora-playbook.yml"] bld --> dep["push build/site
to gh-pages"]

Bibliography

One book on continuous integration was found in the library and its table of contents was consulted for the concepts only: Nikhil Pathania, Learning Continuous Integration with Jenkins (Packt, 2017) — the chapters on the concepts and elements of continuous integration (version control, branching strategy, self-triggered builds, code coverage, static analysis, automated testing and packaging). It is about Jenkins, not GitHub Actions, so every syntax, version and example here is compiled from the official documentation listed under References, and on any discrepancy the current official documentation is the authority.