fix(apm-audit): preserve drift visibility — switch to setup-only (v5.1.2)#13
Merged
danielmeppiel merged 1 commit intomainfrom May 8, 2026
Merged
Conversation
apm-action@v1 with default inputs runs 'apm install' which re-deploys managed primitives from upstream and OVERWRITES any tampered file in the PR. That silently disables content-integrity / drift detection. Switch to setup-only: true (apm CLI on PATH, no install). apm audit then runs against the PR's actual file state, so drift fires when expected. Caught while wiring D2 governance demo Beat 5 (DevExpGbb/zava-storefront#18, which initially passed CI green despite a clear tamper of secure-coding-base). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced May 8, 2026
danielmeppiel
added a commit
to DevExpGbb/zava-storefront
that referenced
this pull request
May 8, 2026
Restores drift detection visibility (setup-only fix in DevExpGbb/zava-agent-config#13). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
apm-action@v1with default inputs runsapm installbefore audit. Install re-deploys managed primitives from upstream, overwriting any tamper of a deployed file in the PR.apm auditthen sees a clean tree andcontent-integrity/driftchecks pass.Repro
DevExpGbb/zava-storefront#18 — Beat 5 of D2 governance demo. PR weakens
secure-coding-base.instructions.md(a deployed file fromsecure-baseline). Localapm audit --cicorrectly fires:CI on v5.1.1 → green. Tampered file silently restored by install.
Fix
setup-only: true— installsapmCLI on PATH only. No install step. Audit runs against the PR's actual file state.Other policy beats (#10 required-packages, #13/#14 dependency-denylist, #11 unmanaged-files) all still fire because audit reads
apm.ymland disk independently of install.Follow-up
Will tag v5.1.2, point v5 floating tag at it, bump zava-storefront ci.yml, re-replay all 5 beats.