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.
Suppress CodeQL
js/http-to-file-accessinensure-docs-slide-pdf.jswith explicit trust-boundary rationale #43049New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress CodeQL
js/http-to-file-accessinensure-docs-slide-pdf.jswith explicit trust-boundary rationale #43049Changes from all commits
c9e50b30a24e89File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[/grill-with-docs] The suppression rationale claims a "fixed GitHub media URL" but the URL path is dynamically constructed — the
owner/reposegment comes fromgit config remote.origin.url(line ~29) and thereffromGITHUB_SHAorgit rev-parse HEAD. The URL host (media.githubusercontent.com) is fixed, but the full URL is not. The comment overstates the fixedness of the source.💡 Suggested improvement
Option A — Make the comment accurate without code changes:
Option B — Make the URL truly fixed by removing the dynamic repo-path lookup and hardcoding
github/gh-aw(the fallback already used when git remote is unavailable).@copilot please address this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[/grill-with-docs] The rationale mentions "PDF signature validation" but
isPdf()only checks the first 5 bytes (%PDF-). This is magic-byte detection, not cryptographic signature validation. The comment's stronger phrasing could mislead future reviewers about the strength of the check.💡 Suggested improvement
Use more precise language in the suppression comment:
Replacing "PDF signature validation" with "PDF magic-byte header" is accurate and still conveys that a format check is in place.
@copilot please address this.
Uh oh!
There was an error while loading. Please reload this page.