FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Decode remote config files as UTF-8 by theinfosecguy · Pull Request #4323 · github/codeql-action · GitHub

Repository navigation

Decode remote config files as UTF-8 - #4323

Open
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:fix-remote-config-utf8
Open

theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:fix-remote-config-utf8

Conversation

Copy link
Copy Markdown

Decode remote config files as UTF-8, matching the local loader. Fixes corrupted Unicode names and paths, including paths that silently skip source files or fail to exclude them.

Verified with 1,230 tests and CodeQL 2.20.7/2.27.4 runs; the Unicode-path repro restores code-injection findings from 1 to 4.

Raw Latin-1 bytes now produce UTF-8 replacement characters, as they already do for local files.

theinfosecguy requested a review from a team as a code owner November 12, 2026 15:50
Copilot AI dynamic review requested due to automatic review settings November 12, 2026 15:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🟢 Approval recommended

There are no active review issues for the change to decode remote CodeQL configurations as UTF-8.

No open issues 🎉

What changed in this PR

This PR aligns remote CodeQL configuration loading with the local loader by decoding files as UTF-8, preserving Unicode names and path filters.

Changes:

  • Replaces binary decoding with UTF-8 decoding for remote configuration files.
  • Adds regression tests for ASCII, Unicode, emoji, and escaped YAML values with configuration validation enabled and disabled.
  • Documents the fix and updates the generated JavaScript bundle.
File Description
unreleased-change-notes/​fix-remote-config-utf8.md Documents the remote configuration decoding fix.
src/​config/​file.ts Decodes remote configuration content as UTF-8.
src/​config/​file.test.ts Tests preservation of configuration names and path filters.
lib/​entry-points.js Generated bundle reflecting the TypeScript change.

Review effort: Balanced (auto)

This branch has not been deployed

No deployments
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL