Skip to content

build: verify fetched highlight queries against pinned sha256 - #24

Merged
danilrwx merged 1 commit into
mainfrom
build/pin-query-hashes
Aug 10, 2026
Merged

build: verify fetched highlight queries against pinned sha256#24
danilrwx merged 1 commit into
mainfrom
build/pin-query-hashes

Conversation

@danilrwx

Copy link
Copy Markdown
Owner

Each SOURCES row gains a sha256 column; files download to a temp dir, verify, then move into assets/queries/. A moved tag or edited file upstream fails the fetch loudly. PRINT_SUMS=1 FORCE=1 prints fresh pins after a version bump. Verified with a full FORCE=1 refetch — all 30 files match.

Query pins are git tags, and tags are mutable — every downloaded
highlights.scm is now checked against a pinned hash before it lands in
assets/queries. PRINT_SUMS=1 FORCE=1 prints fresh pins after a bump.

Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
@danilrwx
danilrwx enabled auto-merge (squash) August 10, 2026 10:23
@github-actions github-actions Bot added the build Build & CI (build:, ci:) label Aug 10, 2026
@danilrwx
danilrwx disabled auto-merge August 10, 2026 10:26
@danilrwx danilrwx added this to the v1.4.0 milestone Aug 10, 2026
@danilrwx
danilrwx enabled auto-merge (squash) August 10, 2026 10:31
@danilrwx
danilrwx merged commit 8ba2359 into main Aug 10, 2026
4 checks passed
@danilrwx
danilrwx deleted the build/pin-query-hashes branch August 10, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build & CI (build:, ci:)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant