wrdn-gha-workflows

Trace attacker-controlled inputs to privileged execution sinks in GitHub Actions workflows.

Updated Aug 3, 2025
One-click install
npx skills add https://github.com/cschmatzler/nixos-config --skill wrdn-gha-workflows-cschmatzler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrdn-gha-workflows
Source: https://github.com/cschmatzler/nixos-config/tree/main/modules/_pi/skills/warden-skills/wrdn-gha-workflows
Command: npx skills add https://github.com/cschmatzler/nixos-config --skill wrdn-gha-workflows-cschmatzler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Detects exploitable GitHub Actions workflow vulnerabilities by tracing attacker-controlled inputs from triggers and PR contexts to privileged execution sinks.

Core Features & Use Cases

  • Trace PR-triggered and reusable-workflow inputs through runs and actions to identify unsafe data flow.
  • Analyze privileged contexts (pull_request_target, workflow_run) and artifact/cache flows for potential misuse.
  • Generate actionable mitigations, such as input validation, environment-passing hardening, and pinning of third-party actions.

Quick Start

Analyze a repository to reveal attacker-controlled input paths and recommended mitigations.

Frequently Asked Questions about wrdn-gha-workflows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit GitHub Actions workflows for expression injection vulnerabilities?

Auditing GitHub Actions workflows for expression injection involves tracing attacker-controlled inputs from triggers and PR contexts to privileged execution sinks to identify unsafe data flows. This process maps entry points and privilege boundaries to produce actionable mitigations.

What makes pull_request_target and workflow_run triggers risky in GitHub Actions?

pull_request_target and workflow_run triggers are risky because they execute with elevated privileges and secrets. If attacker-controlled inputs from pull request contexts or artifact flows reach privileged execution steps without validation, they can lead to pwn requests and secret exposure.

How do I check if reusable workflows expose secrets to untrusted inputs?

Checking reusable workflows for secret exposure requires tracing untrusted data from workflow_call inputs through runs and actions to identify if attacker-controlled data reaches privileged steps. Input validation and environment-passing hardening mitigate these unsafe data flows.

Can I scan chatops and comment-driven GitHub Actions for pwn requests?

Yes, you can scan chatops and comment-driven GitHub Actions commands by tracing untrusted data from issue or PR comments to privileged execution sinks. This identifies where attacker-controlled inputs bypass privilege boundaries and reach sensitive workflow steps.

What is the best way to secure third-party GitHub Actions and prevent secret exposure?

Securing third-party GitHub Actions involves pinning actions to specific commit SHAs, validating inputs, and applying environment-passing hardening. Auditing action manifests and repo-local flows ensures attacker-controlled inputs cannot reach privileged execution sinks.