Skip to content
Back to skills

Github Actions Knowledge Patch

ASecurity

GitHub Actions

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentrustgonodekubernetesgitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill github-actions-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Actions Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Actions Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-github-actions-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-github-actions-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-actions-knowledge-patch
description: GitHub Actions
version: null
license: MIT
metadata:
  author: Nevaberry
---


# GitHub Actions Knowledge Patch

Load this skill when working on GitHub Actions workflow behavior, security
policies, self-hosted runner maintenance, or hosted runner selection.
Use the topic references for the full conditions and operational details.

## Reference index

| Reference | Topics |
| --- | --- |
| [Hosted Runner Images](references/hosted-runner-images.md) | Windows and Visual Studio image selection; Intel macOS preview; M2 larger runners |
| [Security, Trust, and Policy](references/security-trust-and-policy.md) | Run holds; cache restrictions; fork checkout guards; allowlisting; execution protections; OIDC; Copilot coding agent |
| [Self-Hosted Runners](references/self-hosted-runners.md) | Version enforcement and inventory; scale set client; ephemeral runner exit; internal Node.js runtime |
| [Workflow Semantics and Limits](references/workflow-semantics-and-limits.md) | Pull request refs and environment rules; self-repository references; concurrency; limits; step metadata |

## Breaking behavior and upgrade requirements

### Pull request execution and environment filters

Since December 8, 2025, `pull_request_target` takes its workflow file and default
checkout from the repository's default branch regardless of the pull request's
base branch. `GITHUB_REF` points to the default branch and `GITHUB_SHA` to its
latest commit.

Environment branch rules match the execution ref in `GITHUB_REF`. Update filters
to match `refs/pull/<number>/merge` for `pull_request`, `pull_request_review`, and
`pull_request_review_comment`, or the default branch for `pull_request_target`.

### Default-branch cache restrictions

Actions cache access is read-only for untrusted triggers. The default-branch
read-only rule applies when a non-collaborator can trigger the event and both
execution and cache scope use the shared default-branch SHA, as in
`pull_request_target`, `issue_comment`, and fork-PR `workflow_run` cascades.

Restores still work. When a save is denied, `actions/cache` logs a warning and
continues the job. Populate the shared cache from a write-enabled trigger such
as `push`, `schedule`, or `workflow_dispatch`. Events using other cache scopes,
such as `pull_request` and `release`, retain read-write access.

See [Security, Trust, and Policy](references/security-trust-and-policy.md) for
the full list of write-enabled trigger examples.

### Fork checkout guard and pinned action versions

`actions/checkout@v7` refuses to fetch fork PR code on `pull_request_target` and
on `workflow_run` when the originating event matches `pull_request*`.
The guard checks whether `repository` points to the fork or `ref` resolves to
the PR head or merge ref or SHA. The `allow-unsafe-pr-checkout` step input is
an explicit opt-out for reviewed exceptions.

The revised enforcement date for checkout backports was July 20, 2026, covering
supported major versions above v1. Floating major tags pick up the fix
automatically; commit SHA and minor or patch version pins require an explicit
upgrade.

### Self-hosted runner registration and updates

On the hosted service, self-hosted runners need version `2.329.0` or later to
register or re-register. To keep receiving jobs, runners must apply available
releases within 30 days, including patch releases. A critical security update
pauses job queuing until the update is installed.

Auto-updating runners need access to the update service. For manually updated
fleets, refresh installation scripts, deployment automation, and runner images
as releases become available, and recreate runners built from stale templates.

See [Self-Hosted Runners](references/self-hosted-runners.md) for enforcement
dates and version inventory through the REST API and registration audit events.

### Internal Node.js runtime

Starting in runner `2.338.0`, `hashFiles()`, `./run.sh --check`, and the `runsvc.sh`
service wrapper use Node.js 24. To temporarily use Node.js 20 for `hashFiles()`
and `./run.sh --check` only, set this in the runner's environment, for example
in its `.env` file:

```dotenv
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION=node20
```

### Automatic workflow holds

On the hosted service, runs flagged as potentially malicious in public
repositories are automatically held before starting. A repository collaborator
with write access must review and approve the run through an authenticated web
session for it to proceed.

## Workflow features and limits

### Self-repository actions and reusable workflows

On the hosted service, `uses: $/<path>` resolves an action or reusable workflow
in the same repository at the exact commit being run. Internal references
follow a caller's pinned SHA without a checkout. Runner `2.336.0` or later is
required.

The syntax works in workflow steps, composite action steps, nested composition,
and reusable workflow calls:

```yaml
on: workflow_dispatch
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: $/.github/actions/build
  test:
    uses: $/.github/workflows/test.yml
```

### Concurrent steps

Set `background: true` to start a step asynchronously and continue to the next
step while keeping separate logs.

```yaml
on: workflow_dispatch
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Background work
        run: sleep 5
        background: true
      - run: echo "Foreground work"
```

Use `wait` to join selected background steps, `wait-all` to join all prior
background steps, `cancel` to stop a background step gracefully, or `parallel`
to run a group concurrently and wait for it. In runner `2.336.0`, canceling a
background step leaves the overall job result unaffected.

### Workflow limits

| Capability | Limit |
| --- | --- |
| Nested reusable workflows in a single workflow run | Up to 10 |
| Total workflows called in a single workflow run | Up to 50 |
| `workflow_dispatch` inputs for manual and API-triggered runs | Up to 25, up from 10 |

### Step metadata and setup logging

Runner `2.336.0` exposes the effective cache mode to steps through
`ACTIONS_CACHE_MODE`, adds support for the `$GITHUB_ARTIFACTS` environment file,
and reports lockfile use in the job setup log when running with locked
dependencies.

## Trust and policy controls

Repository administrators on all plans can restrict which actions and reusable
workflows are allowed to run.

Public-preview workflow execution protection rulesets allowlist workflow
actors and events at enterprise, organization, or repository scope and are
evaluated before a run. Configure them under **Actions > Policies**. Use custom
properties to target organization rulesets and evaluate mode to see what would
be blocked before enforcing the rules.

Actions OIDC tokens include `check_run_id` alongside `run_id` and `run_attempt`.
Use `check_run_id` to associate an external authorization decision or audit
record with the specific job that requested the token.

Organizations can use Copilot coding agent with Actions disabled.

## Runner selection and autoscaling

| Hosted image | Selection and status |
| --- | --- |
| Windows Server 2025 with Visual Studio 2026 | Dedicated preview: `runs-on: windows-2025-vs2026` |
| macOS 26 on Intel larger runners | Public preview: `runs-on: macos-26-large` |
| M2 macOS larger runners | Generally available: `macos-latest-xlarge`, `macos-15-xlarge`, `macos-14-xlarge`, or `macos-13-xlarge` in `runs-on` |

See [Hosted Runner Images](references/hosted-runner-images.md) for the announced
Windows image availability and migration schedule.

The standalone Go scale set client is in public preview for self-hosted runner
autoscalers outside Kubernetes and supports multiple labels per scale set.
It handles scale set API interactions; your automation implements provisioning,
teardown, and scaling decisions. Multi-label support was also planned for
Actions Runner Controller `0.14.0`.

In runner `2.336.0`, an ephemeral runner exits if the broker returns
`job-not-found` when the runner acknowledges a job.

Files in this skill

  • SKILL.md8.7 KB
  • coverage.json668 B
  • references/hosted-runner-images.md1.5 KB
  • references/security-trust-and-policy.md5.1 KB
  • references/self-hosted-runners.md3.4 KB
  • references/workflow-semantics-and-limits.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.