Skip to content

fix: keep screenshot paths under the shots dir - #1

Merged
AlbinoGeek merged 2 commits into
mainfrom
fix/codeql-http-to-file
Nov 11, 2026
Merged

AlbinoGeek merged 2 commits into
mainfrom
fix/codeql-http-to-file

Conversation

@AlbinoGeek

Copy link
Copy Markdown
Member

CodeQL js/http-to-file-access: network data reached a file path. Screenshot paths now stay under the shots directory with a validated name, with a test that fails on main. Gate green.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 19:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Comment thread src/walk.ts
async function shoot({ base, id }: Session, dir: string, name: string) {
await writeFile(
shotFile(dir, name),
shotBytes(await call(base, 'GET', `/session/${id}/screenshot`)),
@AlbinoGeek
AlbinoGeek merged commit 09413d4 into main Nov 11, 2026
5 checks passed
@AlbinoGeek
AlbinoGeek deleted the fix/codeql-http-to-file branch November 11, 2026 19:58
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.

3 participants