github-actions
Skill0 starsChanged 3 months agoMITView on GitHub
Use when writing or reviewing .github/workflows YAML files or debugging CI. GitHub Actions security and best practices - SHA-pinned actions, least-privilege permissions, script injection via PR context, pull_request_target dangers, secrets and OIDC, cache poisoning, matrix and artifacts.
- Reads credentials
- Deletes or force-pushes
48 other projects use a version of this.
Adopted by
Most recently taken up by
- StephanMeijer/skillstheir own version, first seen Nov 8, 2026
- p-chan/agent-skillstheir own version, first seen Nov 8, 2026
- p-chan/skillstheir own version, first seen Nov 8, 2026
- microsoft/scopetheir own version, first seen Nov 8, 2026
- fmind/dottheir own version, first seen Nov 8, 2026
- fmind/dotfilestheir own version, first seen Nov 8, 2026
Used with
Projects with it also use react-native-brownfield-migration, gitlab-ci and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
maikotrindadeSkillreact-native-brownfield-migration
Provides an incremental adoption strategy to migrate native iOS or Android apps to React Native or Expo using @callstack/react-native-brownfield for initial setup. Use when planning migration steps, packaging XCFramework/AAR artifacts, and integrating them into host apps.
Also in 4 projects that use this
jcsaaddupuySkillgitlab-ci
GitLab CI/CD configuration guide
Also in 3 projects that use this
maikotrindadeSkillupgrading-react-native
Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.
Also in 3 projects that use this
rogue-dev-studioSkillnodejs
Node.js development environment. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `nodejs` work when listed in TEAM.yaml or explicitly requested.
Also in 4 projects that use this
Sorcha-PlatformSkillgrpc
Build or review gRPC services and clients in .NET. USE FOR: ASP.NET Core gRPC, protobuf contracts, unary or streaming RPC, gRPC client factory, interceptors, deadlines, cancellation, channel reuse, backend service integration. DO NOT USE FOR: broad browser-facing APIs without gRPC-Web tradeoff review, SignalR realtime hubs, plain REST APIs. INVOKES: dotnet build/test and focused service or client smoke checks when code changes.
Also in 3 projects that use this
ihiteshguptaSkillterraform
Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.
Also in 5 projects that use this
Other versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 48
- JabRef/jabref★ 4.9ksame name
- callstackincubator/agent-skills★ 1.7ksame name
- tddworks/ClaudeBar★ 1.6ksame name
- OpenHands/extensions★ 167same name
- microsoft/scope★ 78same name
- nitinjain999/platform-skills★ 71same name
- wendylabsinc/claude-skills★ 62same name
- nahid-sparktales/agent-dispatcher★ 59same name
- mujez/claude-skills★ 47same name
- sabahattink/antigravity-fullstack-hq★ 30same name
38 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/project-bootstrap/templates/agents.mdAGENTS.md
- a11y-auditSkill
- agentic-ragSkill
- agent-reachSkill
- ai3d-genSkill
- ai-coding-dictionarySkill
- ai-toolsSkill
- animation-directionSkill
- api-specSkill
- architecture-diagramsSkill
- architectureSkill
- ascii-artSkill
- ask-bundleSkill
- binary-triageSkill
- bragSkill
- brag-slimSkill
- career-opsSkill
- code-reviewSkill
- computer-useSkill
- context7Skill
- context-hygieneSkill
- creative-engineeringSkill
- cu-realtimeSkill
- data-analystSkill
- databaseSkill
- dead-wireSkill
- debuggingSkill
- deploySkill
- devin-configSkill
- dispatching-parallel-agentsSkill
- dmaSkill
- dockerSkill
- drift-reportSkill
- e2e-testingSkill
- edge-casesSkill
- executionSkill
- fact-checkSkill
- finishing-a-development-branchSkill
- firmware-probeSkill
- frontend-designSkill
- gatesSkill
- ghidraSkill
- ghSkill
- git-workflowsSkill
- grillingSkill
- handoffSkill
- humanizerSkill
- hyperframesSkill
- i18nSkill
- image-forensicsSkill
- impeccableSkill
- implement-layaSkill
- intakeSkill
- jiraSkill
- knowledge-modelingSkill
- laya-orchestratorSkill
- learn-modeSkill
- mcp-governanceSkill
- media-toolsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 37 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 28
NEVER interpolate PR context into run:: run: echo "${{ github.event.pull_request.title }}" - the title is attacker-controlled, $(rm -rf ~) …
“Common” is measured: kept by at least 6 in 10 of the 37 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Actions
CI/CD is the most common place to leak secrets and take supply-chain attacks: the YAML is code that runs with credentials. Editing .github/workflows/ requires extra review.
Triggers and scope
on: push/pull_request/workflow_dispatch/schedule/workflow_call- the trigger defines who can run it and with what context.pull_requestfrom a fork runs WITHOUT secrets (safe-ish);pull_request_targetruns with secrets + write token ON FORK CODE = the most dangerous trigger in Actions. Only with restrictedtypes:+ checkout of the base (never the head) + minimal permissions, or anenvironment:with manual review.workflow_run/workflow_dispatchwith inputs: validate them (type: choicewhen possible).paths:/branches:filters so a README change does not run the whole CI.concurrency:to cancel redundant runs (cancel-in-progress: trueon PRs).
Permissions (the default is dangerous)
- The default
GITHUB_TOKENhas broad permissions. ALWAYS declarepermissions:at top level or per job -contents: readis the floor; add only what is needed (pull-requests: write,packages: write). - Job needing no token:
permissions: {}. secrets: inheritin a reusable workflow leaks everything - pass secrets explicitly.
Script injection (the classic bug)
- NEVER interpolate PR context into
run::run: echo "${{ github.event.pull_request.title }}"- the title is attacker-controlled,$(rm -rf ~)executes. Correct: env var (env: TITLE: ${{ ... }}+echo "$TITLE") orgithub-scriptwith the value as an argument. - Dangerous contexts:
github.event.issue.title,.body,pull_request.title,.head.ref,commits.*.message,github.head_ref. Anything an external user controls does NOT go inline intorun:. - Same rule for
env:/with:interpolated directly intoscript:ofactions/github-script.
Third-party actions (supply chain)
- Pin by commit SHA, not by tag:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2. Tags are mutable - the owner can re-point them to malicious code (has happened to popular actions). - Trust only official orgs (
actions/*,github/*) or audited vendors; an obscure 3-star action running with your token is risk. allowed-actionsat repo/org level restricts what runs.- Dependabot for actions updates SHAs (
.github/dependabot.ymlwithpackage-ecosystem: github-actions).
Secrets and OIDC
- Secrets via
${{ secrets.X }}- neverecho(goes to the log); the runner masks, but formatting breaks masking. - OIDC (
id-token: write+ aws/azure/gcp role) replaces long-lived cloud keys - preferable to static secrets. environment:with required reviewers for deploy/prod jobs.- Secrets into a
run:step indirectly via env (env: KEY: ${{ secrets.KEY }}), never inline in the command (the log shows the command, not the env). ACTIONS_STEP_DEBUGlogs more - do not enable on public repos with secrets.
Cache and artifacts
actions/cachekeyed by lockfile (hashFiles('**/package-lock.json')) +restore-keysfallback.- Cache poisoning: can a fork
pull_requestwrite to the shared cache? No - PR cache is isolated from the base branch (butpull_request_targetis not). Know the difference. - Downloading artifacts from another workflow run (
dawidd6/action-download-artifact) is a surface - untrusted PR artifacts must not go straight into a release. - Shorter
retention-daysfor artifacts holding sensitive data.
Jobs and matrix
strategy.matrixfor multi-version/os;fail-fast: falsewhen you want all results.timeout-minuteson every job (default 6h = runaway runner bill).if:with explicitsuccess()/failure()/always()- default is "only if previous passed".outputsbetween jobs vianeeds- never pass secrets through outputs (goes to metadata log).services:(postgres/redis) for real integration tests instead of mocks.runs-on: ubuntu-latestok; self-hosted runner on a public repo = anyone who opens a PR runs code on your machine - NEVER.
Reusable workflows and composite actions
workflow_callwith declaredinputs/secrets; caller passes explicitly (notsecrets: inherit).- Composite action (
action.yml) for repeated steps; same injection care inrun:.
Common review findings
pull_request_targetwithout restriction/protected environment.${{ github.event.* }}insiderun:(injection).- Missing
permissions:(full-access token). - Floating-tag action (
@v4,@main) instead of SHA. secrets: inheritin reusable workflows.- Secret echoed/printed or passed inline in a command.
- Self-hosted runner on a public repo.
continue-on-errorhiding real failure in a required check.- Checkout of
github.event.pull_request.head.shaunderpull_request_target(runs fork code with secrets). - CI edited without the task requiring it (change in workflow needs justification in the report).
Cascade
- Secrets in repo/CI:
securityskill. - Pinned versions of actions/deps: repository pinning rules (versions >7 days published).
- CI files are a protected zone: justify edits in the change report.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

