Skip to content
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

[NOJIRA-123] fix(comment-deploy-link): do not break when a single quote is on title #64

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

gomezjdaniel
Copy link
Contributor

This commit fixes the GitHub Action so that it prevents that a pull request title containing the ` character breaks.

This is fixed by reading these values (branch and pr title) as strings from environment variables instead of interpolating these in the script, as recommented by
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable

This screenshot belongs to this failed job
Screenshot 2023-09-01 at 17 13 12

This commit fixes the GitHub Action so that it prevents that a pull
request title containing the ` character breaks.

This is fixed by reading these values (branch and pr title) as strings
from environment variables instead of interpolating these in the script,
as recommented by
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable

NOJIRA-123
@gomezjdaniel gomezjdaniel requested a review from a team as a code owner September 1, 2023 15:14
@gomezjdaniel gomezjdaniel changed the title fix(comment-deploy-link): do not break when a single quote is on title [NOJIRA-123] fix(comment-deploy-link): do not break when a single quote is on title Sep 4, 2023
@gomezjdaniel gomezjdaniel merged commit 45640b2 into main Sep 4, 2023
2 checks passed
@gomezjdaniel gomezjdaniel deleted the NOJIRA123-fix-comment-deploy-link-single-quote branch September 4, 2023 16:18
@gomezjdaniel
Copy link
Contributor Author

@davidsalvador-tf AFAIK a new release has to be done, right?

@davidsalvador-tf
Copy link
Contributor

@gomezjdaniel yes, I just ran it https://github.com/Typeform/.github/actions/runs/6232837964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants