/ai-literacy-superpowers:github-actions-supply-chainfrom ai-literacy-superpowers
Reviews GitHub Actions workflow files for security issues, hardening CI pipelines, and assessing supply chain risk.
Ships in ai-literacy-superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
GitHub Actions workflows run arbitrary code with access to repository secrets and a GITHUB_TOKEN. A compromised or repointed action is indistinguishable from a legitimate one — the attack lands silently in your CI logs. This skill provides a structured checklist for assessing and hardening Actions supply chain risk.
Never rely on your knowledge of whether an action version is "safe". Run the checklist.
Work through every workflow file in .github/workflows/. For each file:
uses: reference is pinned to a full 40-character commit SHAactions/ and github/ namespaces) are identified and risk-ratedpermissions: block is present and minimally scopedpull_request_target trigger is used with actions/checkout of the PR head (fork poisoning risk)run: shell commands (script injection)dependabot.yml (or Renovate config) exists to keep pinned SHAs currentA mutable tag (@v4) can be silently repointed to a different commit by anyone with push access to that repository — including an attacker who has compromised the maintainer's account. The tj-actions/changed-files incident (March 2025) demonstrated this at scale: a compromised action exfiltrated secrets from thousands of repositories before the tag was corrected.
# Using the GitHub CLI — replace owner, repo, and tag as needed
gh api repos/actions/checkout/git/ref/refs/tags/v4 --jq '.object.sha'
# If the tag points to a tag object rather than a commit, dereference it:
gh api repos/actions/checkout/git/tags/<sha-from-above> --jq '.object.sha'
Alternatively, browse to https://github.com/<owner>/<repo>/releases/tag/<version> and copy the full commit SHA from the "Assets" section or the commit link.
# Before (mutable tag):
uses: actions/checkout@v4
# After (pinned SHA with tag as comment):
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Always leave the tag as a comment so humans can understand what version is pinned.
| Action namespace | Risk level | Rationale |
|---|---|---|
actions/* | Medium | GitHub-owned; GitHub employee accounts can be compromised |
github/* | Medium | Same as above |
| Any other owner | High | No privileged relationship; pin and verify provenance |
Without an explicit permissions: block, a workflow inherits the repository's default token permissions — which may include write access to contents, pull requests, or packages.
permissions:
contents: read
permissions:
contents: read
pull-requests: write
permissions:
contents: write
Apply the permissions: block at the job level when different jobs need different scopes. Apply at the workflow level when all jobs share the same minimal scope.
A dependabot.yml file tells GitHub to open PRs when pinned action SHAs fall behind the latest release. Without this, pinned SHAs become stale and fall behind security patches.
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
actions:
patterns:
- "*"
Add a separate package-ecosystem entry for each language's dependency manager (gomod, maven, etc.) as needed.
After completing the checklist, produce a findings table:
## Supply Chain Assessment — .github/workflows/
| File | Finding | Severity | Fix |
| --- | --- | --- | --- |
| lint.yml | `DavidAnson/markdownlint-cli2-action@v16` not SHA-pinned | High | Pin to commit SHA |
| go-tests.yml | No `permissions:` block | Medium | Add `permissions: contents: read` |
| All files | No dependabot.yml for actions | Medium | Add `.github/dependabot.yml` |
Severity guide:
pull_request_target misuse; script injectionpermissions: block; no dependabotpermissions: for finer control.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub habitat-thinking/ai-literacy-superpowers --plugin ai-literacy-superpowers2 plugins ship this exact skill · first indexed Jul 17, 2026
41 skills in this plugin
/advocatus-diaboliUse when acting as the adversarial spec reviewer — raises steel-manned objections across six categories before plan approval, requires evidence per objection, and discloses what was not challenged/ai-literacy-assessmentThis skill should be used when the user asks to "assess AI literacy", "run an assessment", "check literacy level", "evaluate our AI collaboration", "where are we on the framework", or wants to determine their team's AI literacy level using the ALCI instrument./auto-enforcer-actionUse when setting up automatic PR constraint enforcement via GitHub Actions — covers the advisory-vs-blocking split, workflow installation, configuration options, and reading the output/carpaccioUse when acting as the cadence governor — slices a raw task description into thin, end-to-end-complete pieces before any spec is written; produces a structured slicing record for human disposition; runs at orchestrator step 0/choice-cartographerUse when acting as the decision-archaeology agent — surfaces decisions a spec has made (including the silent ones), emits each material choice as a Henney-style pattern story for human disposition, and pays down intent debt before plan approval/codaUse when closing an agentic session deliberately rather than by attrition — carries the four-step ritual (survey, park, closure summary and reflection, close), the anchor grammar behind the next-action question, the evidence for why a specific written plan releases an unfinished thread, and the anti-patterns that would turn a closing ritual into a gate on the personOther plugins' skills for the same job