Skip to content

fix: retry interrupted reads and validate all Action pins - #36

Open
vinsymoyya wants to merge 1 commit into
tesslio:mainfrom
vinsymoyya:fix/response-body-retries-and-pin-validation
Open

vinsymoyya wants to merge 1 commit into
tesslio:mainfrom
vinsymoyya:fix/response-body-retries-and-pin-validation

Conversation

@vinsymoyya

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interrupted API body reads bypass retries and pin validation misses custom refs

1 participant