Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Github Actions Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-github-actions-knowledge-patch-nevaberry-plugins)
---
name: github-actions-knowledge-patch
description: GitHub Actions
version: null
license: MIT
metadata:
author: Nevaberry
---
# GitHub Actions
Load this skill when updating workflow behavior, reviewing Actions trust
and policy controls, selecting hosted runner images, or maintaining
self-hosted runners.
## Reference index
| Reference | Topics |
| --- | --- |
| [Security, Trust, and Policy](references/security-trust-and-policy.md) | Run holds, pull request execution refs, environment rules, cache restrictions, checkout guards, policy, OIDC |
| [Self-Hosted Runners](references/self-hosted-runners.md) | Version enforcement and inventory, autoscaling client, ephemeral runners, internal Node.js runtime |
| [Hosted Runner Images](references/hosted-runner-images.md) | Windows with Visual Studio, Intel macOS preview, M2 larger runners |
| [Workflow Semantics and Limits](references/workflow-semantics-and-limits.md) | Self-repository references, reusable workflows, concurrent steps, dispatch inputs, artifacts, lockfile reporting |
## Execution and trust changes
### Default-branch execution for pull request targets
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;
`GITHUB_SHA` points to its latest commit.
Environment branch rules match the execution ref in `GITHUB_REF`.
Update environment filters to match `refs/pull/<number>/merge` for
`pull_request`, `pull_request_review`, and `pull_request_review_comment`.
For `pull_request_target`, match the repository's default branch.
### Cache access and writes
Actions cache access is read-only for untrusted triggers. Runner 2.336.0
exposes the effective cache mode to steps through `ACTIONS_CACHE_MODE`.
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. Examples are `pull_request_target`, `issue_comment`,
and fork-PR `workflow_run` cascades. Restores still work; `actions/cache`
logs a warning and continues the job when a save is denied.
Populate the shared cache from a write-enabled trigger such as `push`,
`schedule`, `workflow_dispatch`, `repository_dispatch`, `delete`,
`registry_package`, or `page_build`. Events using other cache scopes,
such as `pull_request` and `release`, retain read-write access.
### Fork checkout guard and pins
`actions/checkout@v7` refuses to fetch fork PR code on
`pull_request_target` and on `workflow_run` when the originating event
matches `pull_request*`. It 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.
### 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.
## Runner maintenance changes
### Registration and update requirements
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 installed.
Runners with auto-update enabled 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. The self-hosted runners REST API
exposes runner versions for upgrade audits.
### 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
```
## Workflow authoring
### References to the same repository
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.
This requires runner version 2.336.0 or later and 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. 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 and input limits
A single workflow run can use up to 10 nested reusable workflows and
call up to 50 workflows in total. `workflow_dispatch` accepts up to
25 inputs for manual and API-triggered runs, up from 10.
### Artifacts and dependency reporting
Runner 2.336.0 adds support for the `$GITHUB_ARTIFACTS` environment file.
It also reports lockfile use in the job setup log when running with
locked dependencies.
## Policy and job identity
Repository administrators on all plans can restrict which actions and
reusable workflows are allowed to run. Organizations can use Copilot
coding agent with Actions disabled.
Public-preview workflow execution rulesets allowlist 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.
## Hosted images and autoscaling
Select the dedicated Windows Server 2025 preview image with
`runs-on: windows-2025-vs2026`. Its announcement scheduled general
availability for May 4, 2026 and the start of the `windows-2025`
migration to Visual Studio 2026 for June 8, 2026.
For larger runners, `runs-on: macos-26-large` selects the public-preview
Intel macOS 26 image. M2-powered larger runners are generally available;
set `runs-on` to `macos-latest-xlarge`, `macos-15-xlarge`,
`macos-14-xlarge`, or `macos-13-xlarge`.
The standalone Go runner scale set client is in public preview for
building self-hosted runner autoscalers outside Kubernetes and supports
multiple labels per scale set. The client handles scale set API
interactions; your automation implements provisioning, teardown, and
scaling decisions.