Skip to content

Commit bd2d2e2

Browse files
committed
🤖 ci: fail installer freshness check on untracked generated files
Extend installer freshness validation to fail when generated artifacts are present but untracked, not just when tracked files differ. --- _Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.82`_ <!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=0.82 -->
1 parent 988d23c commit bd2d2e2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,18 @@ jobs:
159159
config/crd/bases/ \
160160
config/rbac/
161161
162+
UNTRACKED_GENERATED="$(git ls-files --others --exclude-standard -- \
163+
dist/install.yaml \
164+
dist/minimal-installer.yaml \
165+
dist/quickstart-installer.yaml \
166+
config/crd/bases/ \
167+
config/rbac/)"
168+
if [[ -n "${UNTRACKED_GENERATED}" ]]; then
169+
echo "assertion failed: generated installer artifacts must be tracked" >&2
170+
printf '%s\n' "${UNTRACKED_GENERATED}" >&2
171+
exit 1
172+
fi
173+
162174
scan-fs:
163175
name: Trivy filesystem scan
164176
needs: changes

0 commit comments

Comments
 (0)