Skip to content
Back to skills

Ci Pipeline Audit

ASecurity

Read-only CI control and supply-chain audit covering safety signals, secrets, immutable pins, SBOM, signing and provenance.

  • 233 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsrustexpresssecurity

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add jmagly/aiwg --skill ci-pipeline-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ci Pipeline Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ci Pipeline Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jmagly-ci-pipeline-audit/badge)](https://www.skillsdirectory.com/skills/jmagly-ci-pipeline-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ci-pipeline-audit
namespace: aiwg
platforms: [all]
description: Read-only CI control and supply-chain audit covering safety signals, secrets, immutable pins, SBOM, signing and provenance.
triggers:
  - "ci-pipeline-audit"
  - "audit my CI controls"
  - "review pipeline supply chain"
---

# CI Pipeline Audit

## Bound rules

Before work, load and obey each rule below with `aiwg show rule <name> --body`.
If discovery is unavailable, read its canonical source. Stop if a required rule
cannot be loaded. These are mandatory operating instructions; rule-side
`bound_to` metadata is maintained by the rule owner, not by this component.

- `human-authorization` — `@$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/human-authorization.md`
- `dev-pipeline-safety` — `@$AIWG_ROOT/agentic/code/extensions/dev/rules/dev-pipeline-safety.md`
- `dev-secret-hygiene` — `@$AIWG_ROOT/agentic/code/extensions/dev/rules/dev-secret-hygiene.md`
- `dev-idempotent-builds` — `@$AIWG_ROOT/agentic/code/extensions/dev/rules/dev-idempotent-builds.md`
- `dev-ci-self-contained` — `@$AIWG_ROOT/agentic/code/extensions/dev/rules/dev-ci-self-contained.md`
- `ci-action-pinning` — `@$AIWG_ROOT/agentic/code/frameworks/security-engineering/rules/ci-action-pinning.md`

## Process

1. Establish audit scope and inspect workflows/specs, builder definitions,
   redacted run evidence, pin manifest and artifact records read-only. Do not
   trigger workflows or download/execute untrusted project code for review.
2. Check required signals cannot be bypassed, secret access excludes untrusted
   execution, environment protections apply and dependencies are reproducible.
3. With `supply-chain-guard`, inspect full action SHA pins and version comments,
   versioned image digests, installer checksums and matching pin-manifest rows.
4. Trace `ci-sbom`, `ci-sign` and provenance to exact artifact/source digests,
   trusted builder/signer identities, policy verification and retention. Report
   unavailable verification as unknown, never as passed evidence.
5. Check coverage/build-time gates and progressive delivery health/rollback
   controls. If reading flag state, apply the feature-flag boundary below.
6. Produce severity-ranked findings with locations, evidence, impact and
   concrete recommendations. Report and stop for explicit user authorization
   before any change. Never update pins, permissions, gates or CI files as
   an audit side effect, even when remediation appears straightforward.

## Authorization checkpoint

Prepare the concrete proposed diff, affected paths, validation plan and rollback
before applying anything. Require explicit user authorization covering those CI
files before writing, replacing or deleting project workflows, builder files or
CI scripts. A design, review finding or generated preview grants no permission.
Record the approved scope; stop at its boundary. Execution, registry pushes,
trigger changes and live delivery require their own explicit authorization.

## Feature-flag boundary

When flag state matters, read `feature_flags.provider` from project config.
For a configured provider, discover its skills and use its read-only state checks;
never infer a vendor from credentials or installed tools. With provider `none`,
produce a manual approval step for each flag-dependent gate. Missing or unknown
configuration is an unresolved prerequisite, never an implicit pass.
Never create, change, toggle, retire or delete flags, including through delegated
execution. Hand lifecycle decisions to sdlc-complete flag planning, referencing
`@$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/deployment/feature-toggle-card.md`.
Provider operations belong to the provider's skills; lifecycle handoff conveys
no authorization to mutate flags. Pipeline progression may use approved observed
flag state; flag mutations remain outside this component.

## Output template

Resolve the #4423 templates by these names:

- `ci-assessment-report-template`

Audit scope; controls and evidence matrix; findings by severity with file/run references; unknown verification; remediation proposals; owner and approval pending.

## Example

“Audit my CI controls” reports a mutable container tag and missing provenance verification. The audit does not update a digest or disable publishing.

## Artifact handling

Before writing project artifacts, run `aiwg artifacts path --json --check-write`.
Resolve logical `.aiwg/frameworks/cicd-complete/` beneath the returned artifact
root; stop if unavailable. Keep drafts and reports there. Never write literal
secrets or raw credential-bearing logs. Resolve templates by name with discovery;
if a template or capability is absent, record the prerequisite and pending work.
Do not claim execution from schema validation or a proposed procedure.

## Capacity constraints (#4526)

For opted-in capacity profiles, run the existing local constraint validator at
`$AIWG_ROOT/agentic/code/frameworks/cicd-complete/validators/constraints.mjs`
with the pipeline, all named environments and `--phase audit-time`. The built-in
capacity hooks check inventory, pool bounds, spot preference, packing, main job
placement, self-hosted labels and measured timeout ceilings. Follow the capacity
section of `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md`.
Report ID, enforcement and affected pool/job for every violation. Compare the
provider preview against its runner registration and reviewed scale-set values;
report unsupported capacity fields as **not expressible**. Keep live cluster
verification and measurement provenance as explicit unknowns unless evidenced.
Use the existing build-time-budget GatePack for elapsed-time observations;
timeout hits require hang investigation, never automatic budget increases.

## Pipeline-shape constraints (#4527)

For a selected pipeline-shape profile, run the existing constraint validator in
`--phase audit-time` with the inert rendered workflow (`--workflow`) and reviewed
project adapter bindings (`--shape-bindings`). Follow
`$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md#pipeline-shape-4527`.
Report each constraint ID, subject and enforcement. Compare the slow-check
inventory with prior checks and measured execution durations; verify issue
references read-only when access is authorized. Queue wait is excluded from the
PR budget. Check label/head revalidation, registry-cache bindings and the exact
qualified-tree release path. Static adapter declarations are not runtime proof;
missing observations remain unknown. Record the #4528 recovery prerequisite.

## Red-main recovery audit (#4528)

For each selected recovery constraint, run the shared `validateConstraints`
preflight in `audit-time` phase. Use `createRecoveryValidators(evidence)` from
`validators/recovery.mjs` for explicit offline shipped/proposed migration
inventories and normalized run history. Trace declared `ci-test` recovery
policies to required provider verdicts, fix-label access and green-state re-run
subscriptions; missing declarations or bindings are findings. Detect shipped
migration deletion/modification from the ledger and candidate inventory. Trace
every red-main repair deploy to its own tests, build and pre-deploy migration,
including dependency ordering and matching worker/build identity. Missing
runtime evidence is unavailable, not a passed control. Keep the repair-migration
deadlock and the original failing checks in the CI incident record. Formats and
worked example: `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md`.

## Profile audit (#4529)

For a selected profile, run `assessConstraintProfile` at `audit-time` and
classify it with `auditFindings` from
`$AIWG_ROOT/agentic/code/frameworks/cicd-complete/validators/profile-assessment.mjs`.
A `blocking` violation is a finding. An `advisory` violation is a recommendation.
Each names the constraint id and the fix from the validator message. Report
`not-expressible` rows on their own and do not count them as passed controls.
Use `ci-assessment-report-template` for the disposition section.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.