All checks were successful
check / check (push) Successful in 2m58s
static/js/alpine.min.js was a committed minified bundle, which REPO_POLICIES forbids, referenced by no content hash at all. A minified blob is unreviewable, which is the shape a supply-chain compromise takes. script/fetch-assets now downloads Alpine 3.14.9 from the npm registry and verifies sha256 on both the tarball and the extracted file, and static/vendor_test.go re-hashes the bytes go:embed actually placed in the binary. The shipped bytes are byte-identical to the blob that was committed, so the served asset does not change. Independently reviewed. Five negative controls reproduced by the reviewer: flipped expected hash, repointed URL, post-fetch tampering, asset absent, and manifest inconsistencies — each fails closed with static/js/ left clean. Registry hashes confirmed against the pins, and the runtime image was built, run and curled to confirm the asset is still served and the login page still loads it. Known gap, filed separately: static/static.go embeds the js directory rather than named files, so a missing fetched asset is not a compile error on ungated local build paths. Every gated path fails loudly, so the release artifact is unaffected.
52 lines
734 B
Plaintext
52 lines
734 B
Plaintext
# Binaries
|
|
*.exe
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
bin/
|
|
/webhooker
|
|
|
|
# Test binary, built with `go test -c`
|
|
*.test
|
|
|
|
# Output of the go coverage tool
|
|
*.out
|
|
|
|
# Go vendor directory
|
|
vendor/
|
|
|
|
# IDE specific files
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
.vscode/
|
|
|
|
# OS specific files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Environment and config files
|
|
.env
|
|
.env.local
|
|
|
|
# Data directory (SQLite databases)
|
|
data/
|
|
*.db
|
|
*.sqlite
|
|
*.sqlite3
|
|
|
|
# Log files
|
|
*.log
|
|
|
|
# Temporary files
|
|
tmp/
|
|
temp/
|
|
|
|
# CI cache barrier, written into the build context by the check workflow
|
|
.ci-fingerprint
|
|
|
|
# Third-party browser assets, fetched and hash-verified by
|
|
# script/fetch-assets against static/vendor.sha256. Not committed:
|
|
# REPO_POLICIES.md forbids minified bundles in version control.
|
|
/static/js/alpine.min.js |