chore: resolve GitHub code scanning alerts#147
Merged
StefanSteiner merged 2 commits intoJun 16, 2026
Conversation
- Add explicit `permissions: { contents: read }` to all workflow files
that lacked one (ci, release, npm-build-publish, verify-hyperd-pin).
Enforces least-privilege for GITHUB_TOKEN. (14 alerts)
- Add lgtm suppression comments for the js/path-injection and
js/missing-rate-limiting alerts in the hyper-explorer example server.
This is a localhost-only file browser — user-controlled paths are the
intended design, and rate limiting is irrelevant. (6 alerts)
StefanSteiner
added a commit
that referenced
this pull request
Jun 16, 2026
fix(ci): grant contents:write to release publish job The workflow-level `permissions: contents: read` (added in #147) blocks `softprops/action-gh-release` from creating the GitHub Release. Add a job-level override on the `publish` job so it can write releases while the `verify` job stays read-only.
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.
Summary
Resolves all 25 open GitHub CodeQL code scanning alerts:
permissions: { contents: read }toci.yml,release.yml,npm-build-publish.yml, andverify-hyperd-pin.ymllgtmsuppression comments in hyper-explorer example (localhost-only tool where user-controlled paths are by design)#[cfg(test)]fixtures)Test plan
permissionsblocks (confirmscontents: readis sufficient)