Repository navigation
fix: the Hypatia gate could never fire — the defects that made it unconditionally vacuous #58
New 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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/nesy-solver
Length of output: 4460
🏁 Script executed:
Repository: hyperpolymath/nesy-solver
Length of output: 15543
🌐 Web query:
GitHub Actions workflow commands escaping command data properties percent carriage return newline colon comma official documentation💡 Result:
To prevent GitHub Actions workflow commands from being incorrectly interpreted or causing command injection, special characters must be percent-encoded when used within command data or properties [1][2][3]. The official GitHub Actions runner and the official
@actions/coretoolkit implementation use the following escaping rules [1][3]. For workflow command data (the message part following the::), the following characters are escaped [1][3]: - % becomes %25 - \r (carriage return) becomes %0D - \n (newline) becomes %0A For workflow command properties (the key=value pairs within the::delimiters), the following characters are escaped [1][3]: - % becomes %25 - \r (carriage return) becomes %0D - \n (newline) becomes %0A -: (colon) becomes %3A -, (comma) becomes %2C When writing custom logic to issue these commands (e.g., viaecho "::command prop1=val1::message"), ensure that any dynamic data or property values are processed through these encoding rules before being output to stdout [1][2]. For multiline strings, an alternative approach is often to use environment files instead of direct workflow commands, as environment files handle multiline data natively without requiring manual character escaping [4][5][6][7].Citations:
Escape scanner-derived workflow-command fields.
If
.fileor the selected finding message contains workflow-command delimiters,jq -rwrites them unescaped to stdout. GitHub Actions can then interpret injected annotations or commands. Escape command data and properties in both annotation filters at lines 94–95 and 229–230.📍 Affects 1 file
.github/workflows/static-analysis-gate.yml#L94-L95(this comment).github/workflows/static-analysis-gate.yml#L229-L230🤖 Prompt for AI Agents