Repository navigation
ci: refuse any tracked image that carries GPS - #1
Merged
Merged
Conversation
…om valar-scopes #716/#717) The owner (2026-11-14): "add a CI check that refuses any image with GPS in it", for our public repos. - scripts/check_image_gps.py: every tracked file; refuses EXIF GPS, an XMP location tag that holds a value, a HEIF whose Exif cannot be followed, and an archive it cannot read in full. Images by magic bytes, whatever the name; zip/3mf/tar members judged the same way. No allowlist. Parsing copied verbatim from valar-scopes' check_binary_strings.py (17 names, equal by ast). Selftest 24 rows; 11 sabotages, each reddening exactly its rows. - .github/workflows/image-gps.yml runs them on PRs and on pushes to main. On this tree: 43 tracked files read, 0 findings. Pages (legacy, main:/docs) serves docs/ only; scripts/ and .github/ are never served. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
The owner asked for "a CI check that refuses any image with GPS in it" in our public repos. This adds it here, the same check Ropener and MiniSpeedCam carry.
What it is
scripts/check_image_gps.pyreads every tracked file and refuses an image that carries a GPS position:exif-unread: a HEIF whose Exif can't be followed;container: an archive it can't read in full.An image is known by its magic bytes (JPEG, PNG, WebP, TIFF, HEIF/AVIF), whatever its name, and zip/3mf/tar members are judged the same way.
check_binary_strings.py(check_binary_strings: know an image by its magic; read TIFF and HEIF EXIF; a HEIF it cannot follow fails valar-scopes#716 and #717): 17 names, equal byast..github/workflows/image-gps.ymlruns all three on PRs and on pushes tomain.This repo: 43 tracked files read, 0 findings.
On merge: only this new workflow runs. GitHub Pages here is a legacy build from
main:/docs, so it servesdocs/only:scripts/and.github/are never served on the site. A merge may re-run that Pages build, withdocs/unchanged.🤖 Generated with Claude Code