Repository navigation
fix: retry interrupted reads and validate all Action pins - #36
Open
vinsymoyya wants to merge 1 commit into
Open
vinsymoyya wants to merge 1 commit into
vinsymoyya wants to merge 1 commit into
Conversation
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 GitHub API helper retries a failed fetch but reads the response body outside that retry block. A connection reset after headers therefore aborts a GET instead of using its bounded retry policy. Include body reading in the same try/catch while preserving the no-replay policy for POST and keeping JSON parsing outside network retries.
The foundation validator also checks a short list of mutable ref spellings. A custom branch or short SHA passes despite the documented full-commit requirement. Validate every Action reference against a full SHA, preserving local Actions and this repository's documented own-major-tag exemption; Docker references may use a full SHA-256 digest.
The new GET-stream test and custom-ref tests fail before their fixes. The POST regression confirms no replay after a body-read error. All 168 tests and bash scripts/validate-foundation.sh pass on Linux with Node 24, Bash, Git, and jq; whitespace checks pass. GitHub responses are mocked and pin tests use temporary local fixtures.
Closes #35