generated from konveyor/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 12
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
The global-ci.yml workflow does not sanatize PR body text before using it #31
Comments
sjd78
added a commit
to sjd78/konveyor-ci
that referenced
this issue
Apr 11, 2024
Resolves: konveyor#31 - Pass the github event PR description via a step env variable to avoid any string interpolation problems. - Report the calculated test ref (`GOLANG_TESTS_REF` and `UI_TESTS_REF`) via step summary so it is easy to see in the action summary page. - Bump `actions/checkout` to `@v4` to fix its deprecated warning. Signed-off-by: Scott J Dickerson <[email protected]>
sjd78
added a commit
to sjd78/konveyor-ci
that referenced
this issue
Apr 11, 2024
Resolves: konveyor#31 - Pass the github event PR description via a step env variable to avoid any string interpolation problems. - Report the calculated test ref (`GOLANG_TESTS_REF` and `UI_TESTS_REF`) via step summary so it is easy to see in the action summary page. - Bump `actions/checkout` to `@v4` to fix its deprecated warning. Signed-off-by: Scott J Dickerson <[email protected]>
sjd78
added a commit
to sjd78/konveyor-ci
that referenced
this issue
Apr 11, 2024
Resolves: konveyor#31 - Pass the github event PR description via a step env variable to avoid any string interpolation problems. - Report the calculated test ref (`GOLANG_TESTS_REF` and `UI_TESTS_REF`) via step summary so it is easy to see in the action summary page. - Drop `pathfinder-image` input from the `install-tackle` action since that input has been removed. - Bump `actions/checkout` to `@v4` to fix its deprecated warning. Signed-off-by: Scott J Dickerson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attempting to run the global-ci workflow from a tackle2-ui PR (konveyor/tackle2-ui#1781), I encountered a pretty big issue. The PR description is blindly copied to a shell command. PR descriptions can contain a lot of markdown formatting. In this case, I initially had a typo with two backticks next to each other.
This is causing the workflow to crash:
https://github.com/konveyor/tackle2-ui/actions/runs/8304215558/job/22729664960#step:2:21
Even after fixing the typo, any text inside a backtick pair,
which is useful formatting for a package name
, that text will run as a command.Please update the workflow to at least quote escape the PR body text before parsing it.
The text was updated successfully, but these errors were encountered: