[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAMG8T6PF8MARWT9XG7A6R":3,"skill-same:01M6CAMG8T6PF8MARWT9XG7A6R":103},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":60,"linkOnly":61,"markdownContent":62,"markdownBody":63,"frontMatter":64,"refName":73,"commitSha":74,"skillDirectory":75,"forksCount":76,"repositoryHtmlUrl":77,"repositoryHomepageUrl":78,"ownerHtmlUrl":79,"ownerBlogUrl":80,"ownerDescription":81,"updatedAt":82,"install":83,"resources":96},"01M6CAMG8T6PF8MARWT9XG7A6R","ci-workflow-audit","CI 工作流供应链风险审计","Audit CI workflow files for supply-chain risk — unpinned actions, unpinned container images, pull_request-triggered jobs with secret access, curl-pipe-shell installers, and bare :latest tags. Produces a structured markdown report with file:line refs.","审计 CI 工作流文件中的供应链风险——未固定版本的 Action、未固定版本的容器镜像、可访问密钥的 pull_request 触发作业、curl 管道 shell 安装脚本，以及裸 :latest 标签。生成带有 file:line 引用的结构化 markdown 报告。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fci-workflow-audit\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],"workflow audit","audit","ci","workflow","ci workflow audit","access","audit ci","bare","request","release readiness","chain","line","me","pipe","files","images","container","curl","markdown","Safety","risk","pipeline","supply-chain","start","actions","file","pull","release","deployment","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: ci-workflow-audit\nplatforms: [all]\ndescription: Audit CI workflow files for supply-chain risk — unpinned actions, unpinned container images, pull_request-triggered jobs with secret access, curl-pipe-shell installers, and bare :latest tags. Produces a structured markdown report with file:line refs.\ntriggers:\n  - \"help with CI builds or deployment\"\n  - \"help me make the build or deployment path safer\"\n  - \"start with pipeline safety or release readiness\"\n  - \"pipeline safety ci\"\n---\n\n# ci-workflow-audit\n\nUse this skill when a user wants a one-shot scan of their CI workflows\nfor the supply-chain attack surface that the [ci-action-pinning rule](..\u002F..\u002Frules\u002Fci-action-pinning.md)\ndefines as forbidden. The rule is the gate (blocks new violations\npost-deployment); this skill is the discovery tool (surfaces existing\nviolations in a user repo).\n\nPairs with `npm-supply-chain-audit` (npm-ecosystem audit) — together\nthey cover most of the user-side risk surface that AIWG's own\nsupply-chain hardening (`v2026.5.3`) addresses on the AIWG side.\n\n## Triggers\n\n- \"audit workflow pinning\"\n- \"ci workflow audit\"\n- \"are my actions pinned\"\n- \"check container image pins\"\n- \"scan workflows for secrets\"\n- \"supply chain risk in CI\"\n\n## Scope\n\nAudits the following workflow file locations (all supported in parallel):\n\n| Platform | Path |\n|---|---|\n| GitHub Actions | `.github\u002Fworkflows\u002F*.yml`, `.github\u002Fworkflows\u002F*.yaml` |\n| Gitea Actions | `.gitea\u002Fworkflows\u002F*.yml`, `.gitea\u002Fworkflows\u002F*.yaml` |\n| GitLab CI | `.gitlab-ci.yml`, `.gitlab\u002F*.yml` (where applicable) |\n| Reusable workflows | `uses: .\u002F.github\u002Fworkflows\u002F*` references (transitive) |\n\nRead-only. No mutations.\n\n## Audit sequence\n\n### 1. Inventory workflow files\n\n```bash\nfind .github\u002Fworkflows .gitea\u002Fworkflows -type f \\( -name \"*.yml\" -o -name \"*.yaml\" \\) 2>\u002Fdev\u002Fnull\ntest -f .gitlab-ci.yml && echo \".gitlab-ci.yml\"\n```\n\nRecord the count. Each subsequent check iterates over this set.\n\n### 2. Action-pin audit — fail on tag-pinned `uses:`\n\n```bash\n# Detect floating tags (semver tags, branches, latest)\ngrep -rnHE '^\\s*-\\s*uses:\\s*[a-zA-Z0-9._-]+\u002F[a-zA-Z0-9._-]+@(v?[0-9]+(\\.[0-9]+)*|main|master|latest)\\s*(#.*)?$' \\\n  .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull\n```\n\nEach match is a finding. Severity: **HIGH** (workflow runs arbitrary\nthird-party code with workflow's secret access).\n\nAcceptable exception: `uses: .\u002F` references (local reusable workflows\nin the same repo) — these pin to the calling commit. Flag separately\nas INFO and recurse into them to check their `uses:` references too.\n\n### 3. Container-image-pin audit — fail on tag-pinned `container:`\u002F`image:`\n\n```bash\ngrep -rnHE '^\\s*(container|image):\\s*[a-zA-Z0-9._\u002F-]+:[a-zA-Z0-9._-]+\\s*(#.*)?$' \\\n  .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull \\\n  | grep -v 'sha256:'\n```\n\nEach match without `@sha256:` is a finding. Severity: **HIGH** (same\nattack surface as actions; container provides the execution\nenvironment for every step).\n\n### 4. Bare `:latest` audit\n\n```bash\ngrep -rnHE ':latest\\b' .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull\n```\n\nEach match is a finding. Severity: **CRITICAL** (`:latest` is the\ncanonical anti-pattern — captures both digest absence AND the most\nvolatile possible tag).\n\n### 5. PR-secret-exposure audit\n\nFor each workflow file, check whether any job triggered by\n`pull_request` references `secrets.*`:\n\n```bash\n# Identify pull_request-triggered jobs\nfor f in $(find .github\u002Fworkflows .gitea\u002Fworkflows -name \"*.yml\" -o -name \"*.yaml\" 2>\u002Fdev\u002Fnull); do\n  # Extract jobs that run on pull_request and check for secret references\n  awk '\u002F^on:\u002F,\u002F^[a-z]\u002F { print }' \"$f\" | grep -q 'pull_request' || continue\n  if grep -nE '\\${{\\s*secrets\\.' \"$f\" >\u002Fdev\u002Fnull 2>&1; then\n    echo \"POTENTIAL SECRET EXPOSURE in $f\"\n    grep -nE '\\${{\\s*secrets\\.' \"$f\"\n  fi\ndone\n```\n\nEach match is a finding. Severity: **CRITICAL** (a contributor PR\nfrom a fork can read repo secrets via the workflow's environment;\nclassic supply-chain attack vector documented in the Shai-Hulud\ncampaign).\n\nAcceptable exception: jobs gated with `if: github.event.pull_request.head.repo.full_name == github.repository`\n(only trusted maintainer PRs). Flag as INFO and verify the guard.\n\n### 6. Curl-pipe-shell installer audit\n\n```bash\ngrep -rnHE 'curl[^|]+\\|\\s*(bash|sh)' .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull\n```\n\nEach `curl | sh` pattern is a finding. Severity: **MEDIUM** unless\nthe surrounding context includes a content-hash check (look for\n`sha256sum`, `OBSERVED_SHA`, `EXPECTED_INSTALL_SHA`) — if no hash\ncheck is present, severity is **HIGH**.\n\nThe recommended fix pattern (strict-mode opt-in) is documented in the\n[`ci-action-pinning` rule](..\u002F..\u002Frules\u002Fci-action-pinning.md) section\n\"Standalone tools pinned by version + checksum\".\n\n### 7. Pin-manifest presence audit\n\n```bash\ntest -f ci\u002Fdigests.txt || test -f .ci\u002Fdigests.txt || test -f docs\u002Fci\u002Fdigests.txt\n```\n\nIf no pin manifest exists, finding: **MEDIUM** (without a manifest,\ndiffs that change pinned references are not auditable).\n\n## Output format\n\nProduce a markdown report at `.aiwg\u002Fsecurity\u002Fworking\u002Fci-workflow-audit.md`\nwith the structure below. If the working directory doesn't exist,\ncreate it.\n\n```markdown\n# CI Workflow Audit\n\n**Generated**: \u003CISO timestamp>\n**Repo**: \u003Crepo path or URL>\n**Workflow files scanned**: \u003Ccount>\n\n## Findings\n\n### CRITICAL — Bare :latest tags\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n\n### CRITICAL — PR-triggered jobs reference secrets\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Mitigation: Gate the job with `if: github.event.pull_request.head.repo.full_name == github.repository`\n  OR move the secret-using step to a separate `workflow_run`-triggered workflow.\n\n### HIGH — Unpinned actions (tag-pinned uses:)\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Resolve the pin: `git ls-remote https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Crepo> refs\u002Ftags\u002F\u003Ctag>`\n  Replace `@\u003Ctag>` with `@\u003C40-char-sha>` and add a trailing `# \u003Cversion>` comment.\n\n### HIGH — Unpinned container images\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Resolve the digest: `docker pull \u003Cimage>:\u003Ctag>` then `docker inspect \u003Cimage>:\u003Ctag> --format='{{.Id}}'`\n  Replace with `\u003Cimage>:\u003Ctag>@sha256:\u003Cdigest>`.\n\n### HIGH — curl|sh without hash check\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Add observed-SHA logging and strict-mode opt-in per ci-action-pinning rule §\n  \"Standalone tools pinned by version + checksum\".\n\n### MEDIUM — curl|sh with hash check (acceptable, audit annually)\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n\n### MEDIUM — No pin manifest\n\n- No `ci\u002Fdigests.txt` (or equivalent) found. Create one before applying any pinning fixes\n  — the manifest is the source of truth for diff review of future pin bumps.\n\n### INFO — Local reusable workflows (transitive check)\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Recursive check result: \u003Cclean | findings nested below>\n\n### INFO — PR jobs guarded against fork access\n\n- `\u003Cfile>:\u003Cline>` — guard present: `\u003Cthe if: expression>`\n\n## Clean Checks\n\n- All workflow files have at least one signed-tag verification step (or none required).\n- No unpinned references found in `\u003Cfile>` family.\n- ...\n\n## Remediation Plan\n\nSuggested order:\n\n1. Resolve and apply digest pins for CRITICAL findings first (largest blast radius).\n2. Establish or update `ci\u002Fdigests.txt` to reflect the resolved pins.\n3. Move PR-secret-exposure findings out of `pull_request`-triggered workflows.\n4. Add observed-SHA logging to all `curl|sh` installers (HIGH → MEDIUM).\n5. Re-run this audit. Iterate until clean.\n\n## Follow-up Issues\n\nIf findings exceed a one-PR fix scope, file follow-ups for each finding category:\n\n- `ci-pin-actions` — bulk-pin all `uses:` references\n- `ci-pin-containers` — bulk-pin all container images\n- `ci-pr-secret-isolation` — restructure PR-triggered workflows that reference secrets\n- `ci-installer-hardening` — add content-hash checks to all `curl|sh` installers\n\n## References\n\n- [`ci-action-pinning` rule](..\u002F..\u002Frules\u002Fci-action-pinning.md) — the enforcement gate\n- AIWG's own [`ci\u002Fdigests.txt`](https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Faiwg\u002Fsrc\u002Fbranch\u002Fmain\u002Fci\u002Fdigests.txt) — pin-manifest reference\n- [`npm-supply-chain-audit` skill](..\u002Fnpm-supply-chain-audit\u002FSKILL.md) — npm-ecosystem complement\n```\n\n## Incident-response trigger\n\nIf the audit surfaces a `pull_request`-triggered job with `secrets.*`\nreferences that has been merged to the default branch within the past\n90 days, treat it as an incident-response candidate:\n\n1. Check the workflow run history for that file via `gh run list --workflow=\u003Cfile>` (GitHub) or `mcp__git-gitea__actions_run_read` (Gitea)\n2. Inventory any external contributor PRs that triggered the workflow during the exposure window\n3. Rotate any secrets the workflow could have read\n\nThe other audit findings are configuration-hardening, not active\nincidents — fix and move on.\n\n## Completion criteria\n\nThe skill is \"done\" when:\n\n- All seven audit checks have produced findings (or a `Clean Check` note)\n- A markdown report is written to `.aiwg\u002Fsecurity\u002Fworking\u002Fci-workflow-audit.md`\n- The report's Remediation Plan section lists every finding in suggested fix order\n- If any CRITICAL finding is present, the user has been explicitly notified before the skill exits\n\n## See Also\n\n- [`npm-supply-chain-audit` skill](..\u002Fnpm-supply-chain-audit\u002FSKILL.md)\n- [`supply-chain-hardening-quickstart` skill](..\u002Fsupply-chain-hardening-quickstart\u002FSKILL.md)\n- [`ci-action-pinning` rule](..\u002F..\u002Frules\u002Fci-action-pinning.md)\n- [`supply-chain-trust` skill](..\u002Fsupply-chain-trust\u002FSKILL.md) — broader trust-chain design\n\n## References\n\n- AIWG supply-chain hardening post-mortem 2026-05 (Shai-Hulud campaign response)\n- GitHub Actions documentation: pinning third-party actions to commit SHAs\n- npm trusted publishers documentation\n- Sigstore \u002F cosign documentation\n","# ci-workflow-audit\n\nUse this skill when a user wants a one-shot scan of their CI workflows\nfor the supply-chain attack surface that the [ci-action-pinning rule](..\u002F..\u002Frules\u002Fci-action-pinning.md)\ndefines as forbidden. The rule is the gate (blocks new violations\npost-deployment); this skill is the discovery tool (surfaces existing\nviolations in a user repo).\n\nPairs with `npm-supply-chain-audit` (npm-ecosystem audit) — together\nthey cover most of the user-side risk surface that AIWG's own\nsupply-chain hardening (`v2026.5.3`) addresses on the AIWG side.\n\n## Triggers\n\n- \"audit workflow pinning\"\n- \"ci workflow audit\"\n- \"are my actions pinned\"\n- \"check container image pins\"\n- \"scan workflows for secrets\"\n- \"supply chain risk in CI\"\n\n## Scope\n\nAudits the following workflow file locations (all supported in parallel):\n\n| Platform | Path |\n|---|---|\n| GitHub Actions | `.github\u002Fworkflows\u002F*.yml`, `.github\u002Fworkflows\u002F*.yaml` |\n| Gitea Actions | `.gitea\u002Fworkflows\u002F*.yml`, `.gitea\u002Fworkflows\u002F*.yaml` |\n| GitLab CI | `.gitlab-ci.yml`, `.gitlab\u002F*.yml` (where applicable) |\n| Reusable workflows | `uses: .\u002F.github\u002Fworkflows\u002F*` references (transitive) |\n\nRead-only. No mutations.\n\n## Audit sequence\n\n### 1. Inventory workflow files\n\n```bash\nfind .github\u002Fworkflows .gitea\u002Fworkflows -type f \\( -name \"*.yml\" -o -name \"*.yaml\" \\) 2>\u002Fdev\u002Fnull\ntest -f .gitlab-ci.yml && echo \".gitlab-ci.yml\"\n```\n\nRecord the count. Each subsequent check iterates over this set.\n\n### 2. Action-pin audit — fail on tag-pinned `uses:`\n\n```bash\n# Detect floating tags (semver tags, branches, latest)\ngrep -rnHE '^\\s*-\\s*uses:\\s*[a-zA-Z0-9._-]+\u002F[a-zA-Z0-9._-]+@(v?[0-9]+(\\.[0-9]+)*|main|master|latest)\\s*(#.*)?$' \\\n  .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull\n```\n\nEach match is a finding. Severity: **HIGH** (workflow runs arbitrary\nthird-party code with workflow's secret access).\n\nAcceptable exception: `uses: .\u002F` references (local reusable workflows\nin the same repo) — these pin to the calling commit. Flag separately\nas INFO and recurse into them to check their `uses:` references too.\n\n### 3. Container-image-pin audit — fail on tag-pinned `container:`\u002F`image:`\n\n```bash\ngrep -rnHE '^\\s*(container|image):\\s*[a-zA-Z0-9._\u002F-]+:[a-zA-Z0-9._-]+\\s*(#.*)?$' \\\n  .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull \\\n  | grep -v 'sha256:'\n```\n\nEach match without `@sha256:` is a finding. Severity: **HIGH** (same\nattack surface as actions; container provides the execution\nenvironment for every step).\n\n### 4. Bare `:latest` audit\n\n```bash\ngrep -rnHE ':latest\\b' .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull\n```\n\nEach match is a finding. Severity: **CRITICAL** (`:latest` is the\ncanonical anti-pattern — captures both digest absence AND the most\nvolatile possible tag).\n\n### 5. PR-secret-exposure audit\n\nFor each workflow file, check whether any job triggered by\n`pull_request` references `secrets.*`:\n\n```bash\n# Identify pull_request-triggered jobs\nfor f in $(find .github\u002Fworkflows .gitea\u002Fworkflows -name \"*.yml\" -o -name \"*.yaml\" 2>\u002Fdev\u002Fnull); do\n  # Extract jobs that run on pull_request and check for secret references\n  awk '\u002F^on:\u002F,\u002F^[a-z]\u002F { print }' \"$f\" | grep -q 'pull_request' || continue\n  if grep -nE '\\${{\\s*secrets\\.' \"$f\" >\u002Fdev\u002Fnull 2>&1; then\n    echo \"POTENTIAL SECRET EXPOSURE in $f\"\n    grep -nE '\\${{\\s*secrets\\.' \"$f\"\n  fi\ndone\n```\n\nEach match is a finding. Severity: **CRITICAL** (a contributor PR\nfrom a fork can read repo secrets via the workflow's environment;\nclassic supply-chain attack vector documented in the Shai-Hulud\ncampaign).\n\nAcceptable exception: jobs gated with `if: github.event.pull_request.head.repo.full_name == github.repository`\n(only trusted maintainer PRs). Flag as INFO and verify the guard.\n\n### 6. Curl-pipe-shell installer audit\n\n```bash\ngrep -rnHE 'curl[^|]+\\|\\s*(bash|sh)' .github\u002Fworkflows\u002F .gitea\u002Fworkflows\u002F 2>\u002Fdev\u002Fnull\n```\n\nEach `curl | sh` pattern is a finding. Severity: **MEDIUM** unless\nthe surrounding context includes a content-hash check (look for\n`sha256sum`, `OBSERVED_SHA`, `EXPECTED_INSTALL_SHA`) — if no hash\ncheck is present, severity is **HIGH**.\n\nThe recommended fix pattern (strict-mode opt-in) is documented in the\n[`ci-action-pinning` rule](..\u002F..\u002Frules\u002Fci-action-pinning.md) section\n\"Standalone tools pinned by version + checksum\".\n\n### 7. Pin-manifest presence audit\n\n```bash\ntest -f ci\u002Fdigests.txt || test -f .ci\u002Fdigests.txt || test -f docs\u002Fci\u002Fdigests.txt\n```\n\nIf no pin manifest exists, finding: **MEDIUM** (without a manifest,\ndiffs that change pinned references are not auditable).\n\n## Output format\n\nProduce a markdown report at `.aiwg\u002Fsecurity\u002Fworking\u002Fci-workflow-audit.md`\nwith the structure below. If the working directory doesn't exist,\ncreate it.\n\n```markdown\n# CI Workflow Audit\n\n**Generated**: \u003CISO timestamp>\n**Repo**: \u003Crepo path or URL>\n**Workflow files scanned**: \u003Ccount>\n\n## Findings\n\n### CRITICAL — Bare :latest tags\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n\n### CRITICAL — PR-triggered jobs reference secrets\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Mitigation: Gate the job with `if: github.event.pull_request.head.repo.full_name == github.repository`\n  OR move the secret-using step to a separate `workflow_run`-triggered workflow.\n\n### HIGH — Unpinned actions (tag-pinned uses:)\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Resolve the pin: `git ls-remote https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Crepo> refs\u002Ftags\u002F\u003Ctag>`\n  Replace `@\u003Ctag>` with `@\u003C40-char-sha>` and add a trailing `# \u003Cversion>` comment.\n\n### HIGH — Unpinned container images\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Resolve the digest: `docker pull \u003Cimage>:\u003Ctag>` then `docker inspect \u003Cimage>:\u003Ctag> --format='{{.Id}}'`\n  Replace with `\u003Cimage>:\u003Ctag>@sha256:\u003Cdigest>`.\n\n### HIGH — curl|sh without hash check\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Add observed-SHA logging and strict-mode opt-in per ci-action-pinning rule §\n  \"Standalone tools pinned by version + checksum\".\n\n### MEDIUM — curl|sh with hash check (acceptable, audit annually)\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n\n### MEDIUM — No pin manifest\n\n- No `ci\u002Fdigests.txt` (or equivalent) found. Create one before applying any pinning fixes\n  — the manifest is the source of truth for diff review of future pin bumps.\n\n### INFO — Local reusable workflows (transitive check)\n\n- `\u003Cfile>:\u003Cline>` — `\u003Cmatching line>`\n  Recursive check result: \u003Cclean | findings nested below>\n\n### INFO — PR jobs guarded against fork access\n\n- `\u003Cfile>:\u003Cline>` — guard present: `\u003Cthe if: expression>`\n\n## Clean Checks\n\n- All workflow files have at least one signed-tag verification step (or none required).\n- No unpinned references found in `\u003Cfile>` family.\n- ...\n\n## Remediation Plan\n\nSuggested order:\n\n1. Resolve and apply digest pins for CRITICAL findings first (largest blast radius).\n2. Establish or update `ci\u002Fdigests.txt` to reflect the resolved pins.\n3. Move PR-secret-exposure findings out of `pull_request`-triggered workflows.\n4. Add observed-SHA logging to all `curl|sh` installers (HIGH → MEDIUM).\n5. Re-run this audit. Iterate until clean.\n\n## Follow-up Issues\n\nIf findings exceed a one-PR fix scope, file follow-ups for each finding category:\n\n- `ci-pin-actions` — bulk-pin all `uses:` references\n- `ci-pin-containers` — bulk-pin all container images\n- `ci-pr-secret-isolation` — restructure PR-triggered workflows that reference secrets\n- `ci-installer-hardening` — add content-hash checks to all `curl|sh` installers\n\n## References\n\n- [`ci-action-pinning` rule](..\u002F..\u002Frules\u002Fci-action-pinning.md) — the enforcement gate\n- AIWG's own [`ci\u002Fdigests.txt`](https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Faiwg\u002Fsrc\u002Fbranch\u002Fmain\u002Fci\u002Fdigests.txt) — pin-manifest reference\n- [`npm-supply-chain-audit` skill](..\u002Fnpm-supply-chain-audit\u002FSKILL.md) — npm-ecosystem complement\n```\n\n## Incident-response trigger\n\nIf the audit surfaces a `pull_request`-triggered job with `secrets.*`\nreferences that has been merged to the default branch within the past\n90 days, treat it as an incident-response candidate:\n\n1. Check the workflow run history for that file via `gh run list --workflow=\u003Cfile>` (GitHub) or `mcp__git-gitea__actions_run_read` (Gitea)\n2. Inventory any external contributor PRs that triggered the workflow during the exposure window\n3. Rotate any secrets the workflow could have read\n\nThe other audit findings are configuration-hardening, not active\nincidents — fix and move on.\n\n## Completion criteria\n\nThe skill is \"done\" when:\n\n- All seven audit checks have produced findings (or a `Clean Check` note)\n- A markdown report is written to `.aiwg\u002Fsecurity\u002Fworking\u002Fci-workflow-audit.md`\n- The report's Remediation Plan section lists every finding in suggested fix order\n- If any CRITICAL finding is present, the user has been explicitly notified before the skill exits\n\n## See Also\n\n- [`npm-supply-chain-audit` skill](..\u002Fnpm-supply-chain-audit\u002FSKILL.md)\n- [`supply-chain-hardening-quickstart` skill](..\u002Fsupply-chain-hardening-quickstart\u002FSKILL.md)\n- [`ci-action-pinning` rule](..\u002F..\u002Frules\u002Fci-action-pinning.md)\n- [`supply-chain-trust` skill](..\u002Fsupply-chain-trust\u002FSKILL.md) — broader trust-chain design\n\n## References\n\n- AIWG supply-chain hardening post-mortem 2026-05 (Shai-Hulud campaign response)\n- GitHub Actions documentation: pinning third-party actions to commit SHAs\n- npm trusted publishers documentation\n- Sigstore \u002F cosign documentation\n",{"name":5,"triggers":65,"namespace":70,"platforms":71,"description":7},[66,67,68,69],"help with CI builds or deployment","help me make the build or deployment path safer","start with pipeline safety or release readiness","pipeline safety ci","aiwg",[72],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fci-workflow-audit",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":84,"prompt":94,"zipAvailable":95},[85,88,91],{"tool":86,"command":87},"npx","npx skills add jmagly\u002Faiwg --skill ci-workflow-audit",{"tool":89,"command":90},"bunx","bunx skills add jmagly\u002Faiwg --skill ci-workflow-audit",{"tool":92,"command":93},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill ci-workflow-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fci-workflow-audit\u002FSKILL.md",true,[97],{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"agents\u002Fopenai.yaml","REFERENCE","参考文档",144,"https:\u002F\u002Fgithub.com\u002Fcookeyholder\u002Fusing-ai-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002Fagents\u002Fopenai.yaml",[104,112,117,141,161,166],{"skillNo":105,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":111},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":113,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":111},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":17,"description":120,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":60},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[124,125,126,127,128,129,39,130,131,32,132,133,134,135,36,136,137,138,139,140],"hardening","host","host hardening","verification","secrets","read","remediation","recommendations","plan","port","bind","Bash","only","retention","re","never","firewall",{"skillNo":142,"name":143,"nameZh":17,"description":144,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":60},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[148,149,150,151,152,153,129,154,133,139,135,155,125,156,136,157,158,140,159,160],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":162,"name":119,"nameZh":17,"description":120,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":60},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[124,125,126,138,139,140,134,137,131,128,129,39,130,32,132,133,127,135,36,136],{"skillNo":167,"name":143,"nameZh":17,"description":144,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":60},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[148,149,160,159,152,158,157,136,151,153,129,154,133,150,135,155,125,140,139,156]]