-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Hypatia annotations read "null" on an unanchorable absolute path #6
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/a2ml-validate-action
Length of output: 5319
🌐 Web query:
GitHub Actions workflow commands escaping command properties commas colons percent carriage return newline official documentation runner ActionCommand.cs💡 Result:
GitHub Actions workflow commands utilize a specific percent-encoding scheme to prevent command injection and parsing errors when payloads contain special characters [1][2]. The runner parses these commands, and because certain characters act as delimiters for the command structure, they must be escaped when they appear in data or property values [1][3]. The official escaping implementation, mirrored in the official actions/toolkit and the GitHub Actions runner (specifically within ActionCommand.cs logic), relies on the following percent-encoding rules [1][2]: General Data Escaping: When providing the main data payload of a command (e.g.,::command::data), the following characters must be escaped: - Percent (%) becomes %25 [1][3] - Carriage Return (\r) becomes %0D [1][3] - Newline (\n) becomes %0A [1][3] Property Escaping: Property values (e.g., key=value in::command key=value::data) are more restrictive because the runner splits property lists on commas (,) and identifies property keys/values using colons (:). Therefore, property values require additional escaping [1][3]: - Percent (%) becomes %25 [1][3] - Carriage Return (\r) becomes %0D [1][3] - Newline (\n) becomes %0A [1][3] - Colon (:) becomes %3A [1][3] - Comma (,) becomes %2C [1][3] If you are writing workflow commands manually, you must ensure your implementation applies these substitutions to any user-provided strings or dynamic values before outputting them to stdout [2]. Failure to do so can allow malicious inputs to break out of the command structure or create unintended command injections [2]. For complex multiline data, it is recommended to use environment files instead of workflow commands whenever possible [4][5].
Citations:
Escape dynamic annotation fields before emitting workflow commands.
The
jqfilters in bothEmit check annotationssteps send$fand$mto the GitHub Actions command parser. If$fcontains,or:, the parser can split or misread thefileproperty. If$mcontains%, carriage return, or newline, the command data can be parsed incorrectly. Escape command properties and command data before interpolation, with%encoded first.🤖 Prompt for AI Agents
Source: MCP tools