Skip to content

Comments

ci: add gate to prevent .received.txt files from being committed (#4880)#4918

Merged
thomhurst merged 1 commit intomainfrom
ci/prevent-received-txt
Feb 19, 2026
Merged

ci: add gate to prevent .received.txt files from being committed (#4880)#4918
thomhurst merged 1 commit intomainfrom
ci/prevent-received-txt

Conversation

@thomhurst
Copy link
Owner

Summary

  • Adds a CI step early in the pipeline (right after checkout, before build/test) that checks for any .received.txt files in the repository and fails the build if any are found
  • The .gitignore already contains *.received.* which prevents accidental staging, but this CI gate provides a second layer of defense
  • Uses shell: bash to ensure consistent behavior across all three matrix OS runners (ubuntu, windows, macos)

Closes #4880

Test plan

  • Verify the CI step passes on a clean checkout (no .received.txt files exist in the repo)
  • Verify the step would fail if a .received.txt file were committed by temporarily adding one and running the find command locally

Add a CI step that runs early in the pipeline (right after checkout)
to detect any accidentally committed .received.txt snapshot files.
These files should never be checked in — only .verified.txt files
should be committed.

Closes #4880
@thomhurst thomhurst merged commit 84b4edd into main Feb 19, 2026
12 of 13 checks passed
@thomhurst thomhurst deleted the ci/prevent-received-txt branch February 19, 2026 00:31
This was referenced Feb 22, 2026
This was referenced Feb 23, 2026
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.

fix: add CI gate to prevent .received.txt snapshot files from being committed

1 participant