Repository navigation
Conversation
The release body, issue title and pull request title are expanded into the script that builds the Telegram message, so any of them can run commands on the runner. Pass them through env instead.
sameerasw
approved these changes
Nov 16, 2026
sameerasw
left a comment
Owner
There was a problem hiding this comment.
Thank you for pointing it out! <3
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
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.
notify.ymlpastes release, issue and pull request fields into the script thatbuilds the Telegram message:
Those expressions are expanded before bash parses the script, so the quotes
around them are part of the text bash reads, not a wrapper. A release body, an
issue title or a PR title containing
$(…), backticks or a bare"runscommands on the runner. This workflow triggers on
issues: openedandpull_request: opened, so a stranger can reach it without any maintainer action.Fix
Move every dynamic field into
env:and read variables in the script:Variables are expanded after parsing, so the message text stays data. The
existing HTML escaping,
sedcleanup and 3000-character truncation areunchanged, and the Telegram call still receives the same
full_message.Verification
Same check for the issue/PR branches (
ISSUE_TITLE,PR_TITLE). The file stillparses with
yaml.safe_load.