github-actions-supply-chain

Assess GitHub Actions workflows for supply-chain security weaknesses.

44|6|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Habitat-Thinking/ai-literacy-superpowers --skill github-actions-supply-chain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions-supply-chain
Source: https://github.com/Habitat-Thinking/ai-literacy-superpowers/tree/main/ai-literacy-superpowers/skills/github-actions-supply-chain
Command: npx skills add https://github.com/Habitat-Thinking/ai-literacy-superpowers --skill github-actions-supply-chain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured checklist and guidance to find and remediate supply-chain and security weaknesses in GitHub Actions workflows, reducing the risk of secret exfiltration and malicious code execution via CI.

Core Features & Use Cases

  • SHA pinning enforcement: Ensure every uses: reference is pinned to a full 40-character commit SHA and retain the human-readable tag as a comment.
  • Third-party action risk identification: Flag actions outside the actions/ and github/ namespaces and classify their risk.
  • Permissions and trigger hardening: Verify minimal permissions blocks, detect unsafe pull_request_target usage, and find user-controlled inputs that flow into run: commands.
  • Maintenance automation: Check for dependabot or Renovate configuration to keep pinned SHAs up to date.
  • Use Case: Run this checklist during repository security reviews, CI hardening sprints, or pre-release audits to produce a prioritized findings table and remediation plan.

Quick Start

Run a supply chain assessment across the repository's .github/workflows directory and report any actions not pinned to commit SHAs, workflows missing minimal permissions, or unsafe pull_request_target usage.

Frequently Asked Questions about github-actions-supply-chain

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

FAQPage Schema
How do I check if my GitHub Actions workflows are pinned to commit SHAs?

To check GitHub Actions SHA pinning, review every uses: reference in your .github/workflows files to ensure it points to a 40-character commit SHA rather than a mutable tag. This Skill automates that assessment and verifies the human-readable tag is retained as a comment alongside the SHA.

Why is using pull_request_target in GitHub Actions a security risk?

Using pull_request_target in GitHub Actions is risky because it executes workflows with repository secrets and write permissions. This Skill flags unsafe pull_request_target usage, detecting when user-controlled inputs flow into run: commands and identifying potential malicious code execution paths via CI.

What is the best way to automate updates for pinned commit SHAs in GitHub Actions?

The best way to automate updates for pinned commit SHAs is configuring Dependabot or Renovate in your repository. This Skill checks for a dependabot or Renovate configuration file to verify your pinned SHAs are kept up to date automatically.

How do I scope GitHub Actions permissions to prevent secret exfiltration?

To scope GitHub Actions permissions and prevent secret exfiltration, apply minimally scoped permissions blocks at the workflow or job level. This Skill verifies that your workflows contain minimal permissions blocks instead of relying on broad default repository settings.

Does this supply chain security review flag third-party GitHub Actions?

Yes, this supply chain security review flags third-party GitHub Actions by identifying actions outside the actions/ and github/ namespaces. It classifies the risk of these external actions to help prioritize your CI hardening and remediation efforts.

What do I need to run a GitHub Actions security assessment on my repositories?

To run a GitHub Actions security assessment, you need repositories containing .github/workflows files. This Skill analyzes those workflow files to evaluate action version pinning, trigger misuse, and Dependabot configuration to produce a prioritized findings table.