Repository navigation
Conversation
setupEndorctl now asks for gzip and decodes the response stream. The sha256 check runs on the installed file, which must be a regular file. A corrupt gzip response gets one retry without compression. The unused @actions/tool-cache dependency is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Overview
The action now asks for gzip when it downloads
endorctland decodes the response stream. When the server sends gzip, the transfer is about 4x smaller. When it does not, nothing changes. The sha256 check now runs on the installed file itself, and that file must be a regular file.Changes
src/download.ts: newdownloadDecoded. It sendsAccept-Encoding: gzip, decodes when the response hasContent-Encoding: gzip, and keeps the old retry behavior (3 attempts on 5xx, 408, 429 and network errors). A corrupt gzip response gets one retry without compression.src/utils.ts: the binary is copied byte by byte to./endorctl, then that copy is hashed and checked, then made executable. A pre-existing./endorctlsymlink is replaced, and its target is not written.@actions/tool-cacheis no longer used, so it is removed frompackage.json, the lockfile and.licenses.dist/is rebuilt; most of its line deletions are that bundled package.Testing
yarn lint,yarn format,yarn test(24 passed, 3 skipped, as before) andyarn package.licensed(not installed locally); CI runs it.🥷 harness
v1.7.1256-12-g4ee17afdcd·opus-5-5·default·@main·/gh-signed-commits