feat(ci): add APM audit enforcement workflow#39
Conversation
Add apm-audit.yml that runs `apm audit --ci --no-cache --no-drift`
on PRs, merge queue, and push to main. Uses microsoft/apm-action@v1
which handles APM CLI installation and runs `apm install` before
the audit script. The summary job ("APM Audit CI Gate") follows the
try-enqueue pattern for auto-merge integration.
Uses --no-drift initially since existing drift from the APM adoption
PR needs to be resolved separately.
Co-Authored-By: Claude <noreply@anthropic.com>
The agentic-sdlc dependency is private — apm install fails in CI without auth. Use setup-only to install just the CLI, then run apm audit directly as a shell command. The audit checks lockfile integrity, content integrity, and ref consistency without needing to clone the dependency. Co-Authored-By: Claude <noreply@anthropic.com>
Un-ignore apm.lock.yaml and commit the generated lockfile so apm audit --ci can verify lockfile-exists, ref-consistency, and other structural checks in CI. Co-Authored-By: Claude <noreply@anthropic.com>
|
🤖 Amber Review Clean CI implementation. One question to resolve, then this is good to go. Summary: Workflow follows all existing patterns correctly. SHA-pinned, least-privilege, proper concurrency group. One question about whether Full AnalysisStrengths:
Question — The workflow installs the APM CLI with If audit requires installed packages, removing Acknowledged tech debt: Confidence: High on everything except the — Amber |
Summary
apm-audit.ymlworkflow that runsapm audit --ci --no-cache --no-drifton PRs, merge queue, and push to mainmicrosoft/apm-action@v1(SHA-pinned) which handles APM CLI installation andapm installbefore running the auditGATESarray intry-enqueue.sh--no-driftinitially — existing drift from the APM adoption PR (chore: adopt APM and reorganize skills into SDLC buckets #37) needs separate resolutionTest plan
try-enqueue.shGATES arrayif: always()summary, try-enqueue step🤖 Generated with Claude Code