-
Notifications
You must be signed in to change notification settings - Fork 571
ci(frontend-deploy): name what is being deployed #8431
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
Open
talissoncosta
wants to merge
2
commits into
main
Choose a base branch
from
feat/deploy-card-pr-title
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+49
−2
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
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.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge Flagsmith/flagsmith /tmp/coderabbit-repo-knowledge/flagsmith-flagsmith-a74d157a/conventions /tmp/coderabbit-repo-knowledge/flagsmith-flagsmith-a74d157a/learningsLength of output: 6518
🏁 Script executed:
Repository: Flagsmith/flagsmith
Length of output: 18587
🌐 Web query:
site:api.slack.com/reference/block-kit/composition-objects/text-object mrkdwn 3000 characters incoming webhook invalid_blocks💡 Result:
Slack’s documentation confirms:
mrkdwntext object must contain 1–3,000 characters. Exceeding that limit can cause an incoming webhook request to fail with aninvalid_blocks-style validation error. [1]sectionblock, thetextobject also has a 3,000-character maximum. [2]Example fix:
Also validate the serialized text content, escape
&,<, and>where appropriate, and ensure each block is valid JSON. [4]Sources
[1] (api.slack.com)
[2] (api.slack.com)
[3] (api.slack.com)
[4] (api.slack.com)
Citations:
🏁 Script executed:
Repository: Flagsmith/flagsmith
Length of output: 16886
Bound the complete context text to Slack’s 3,000-character limit.
The context
mrkdwntext includes the escaped$titleand, when$pr_urlis set, the link syntax.$titlehas no length limit, and escaping can increase its length. A long commit title can therefore make Slack reject the payload and remove the notification. Limit the complete rendered value to 3,000 characters without splitting an entity, while reserving space for the pull-request URL and link delimiters. The notification step already usescontinue-on-error, so deployment continues but the notification is lost.Source: MCP tools
🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
site:api.slack.com/reference/block-kit/composition-objects/text-object verbatim explicit mrkdwn links💡 Result:
Slack Text objects support two formats:
type: "plain_text"— unformatted text; supports the optionalemojifield.type: "mrkdwn"— Slack’s Markdown-like syntax; supports bold, italics, strikethrough, line breaks, and links. [1][2]For
mrkdwn, links can be written as:{ "type": "mrkdwn", "text": "Visit <https://example.com|our website>." }The optional
verbatimfield controls automatic parsing:verbatim: false(default): Slack auto-links URLs, channel names, and certain mentions.verbatim: true: Slack preserves plain text as written, while still processing Markdown and explicit parsing strings. [1]Example:
{ "type": "mrkdwn", "verbatim": true, "text": "Literal `#channel` and https://example.com" }Here, the URL and channel reference are not automatically converted; use explicit syntax such as
<https://example.com|Example>when you want a link. [1][2]Sources
[1] Slack Text object reference (api.slack.com)
[2] Slack message formatting guide (api.slack.com)
Citations:
Reachability: External
Exploitability: Moderate
CWE: CWE-116 — Improper Encoding or Escaping of Output
Disable automatic URL parsing for the title.
A commit title can contain a URL and reach this Slack notification. Set
verbatim: trueon both titlemrkdwnobjects. Slack will still process the explicit pull-request link.Suggested fix
📝 Committable suggestion
Source: MCP tools