Repository navigation
Fix the tracking-issue workflow running PR text as shell - #594
Merged
Merged
Conversation
The "Create Issue from Unlinked PR" workflow checks the pull request's
title and description for a linked issue. To do that it pasted both into
its shell script with `${{ github.event.pull_request.* }}` expressions.
Expressions are expanded before the shell parses the script, so the text
became part of the script. Backticks and `$( )` in a title or description
were executed on the runner, and ordinary text could break the step: a
description containing a double-quoted phrase with parentheses failed the
check with "syntax error near unexpected token `('".
Read both values from the event payload with jq, the way the step already
reads the branch name, so they are only ever data. The link detection is
unchanged, and an empty description still counts as unlinked. body.txt and
title.txt are no longer written; nothing else read them.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
This is linked to GitHub issue #595. |
Test the buildWordPress Playground - runs in your browser
ℹ️ Neither can connect to Square: signing in to Square has to send you back to the site, and a site that runs in your browser tab has no public address to come back to. Without a connection the store cannot take payments, sync products or receive webhooks, so the previews show what a merchant sees before connecting. Do not enter Square access tokens or other credentials in a preview. The links stop working 14 days after the last build. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
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.
All Submissions:
Changes proposed in this Pull Request:
The "Create Issue from Unlinked PR" workflow pasted the pull request title and description into its shell script, so the shell parsed that text as code. Backticks and
$( )in it ran on the runner, and a description with a quoted phrase containing parentheses failed the check with a syntax error. The step now reads both from the event payload withjq, as it already does for the branch name; link detection is unchanged.Steps to test the changes in this Pull Request:
create-gh-issuecheck passes on this pull request. This description has a quoted phrase with parentheses, "E2E tests (@cashapp)", which failed the check before.Changelog entry
🤖 Generated with Claude Code
Closes #595