Skip to content

[codey] Guard committed Action bundle freshness#33

Merged
Conalh merged 1 commit into
mainfrom
codey/ci-dist-freshness
May 22, 2026
Merged

[codey] Guard committed Action bundle freshness#33
Conalh merged 1 commit into
mainfrom
codey/ci-dist-freshness

Conversation

@Conalh
Copy link
Copy Markdown
Owner

@Conalh Conalh commented May 22, 2026

Summary

  • adds a CI guard that fails if npm run build changes the committed dist bundle
  • extends workflow tests so the guard stays in place

Why

The published Action now runs from tracked dist files. This prevents future PRs from changing src while accidentally leaving the versioned Action bundle stale.

Verification

  • node --test test/workflow.test.mjs (red before CI guard, green after)
  • npm run build
  • git diff --exit-code -- dist
  • npm test (37/37)
  • node dist/index.js audit --repo . --format json (rating none, 0 findings)
  • node dist/index.js audit --repo test/fixtures/conflicted --format github
  • git diff --check

@Conalh Conalh marked this pull request as ready for review May 22, 2026 01:20
@Conalh Conalh merged commit 3ca64c6 into main May 22, 2026
4 checks passed
@Conalh Conalh deleted the codey/ci-dist-freshness branch May 22, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant