ppalaga commented on code in PR #7838:
URL: https://github.com/apache/camel-quarkus/pull/7838#discussion_r2431830748
##########
.github/workflows/ci-build.yaml:
##########
@@ -128,8 +128,8 @@ jobs:
echo "continue-build=true" >> $GITHUB_OUTPUT
else
mkdir ./dependabot-pr
- echo ${{ github.head_ref }} > ./dependabot-pr/BRANCH_REF
- echo ${{ github.event.pull_request.head.sha }} >
./dependabot-pr/PR_HEAD_SHA
+ printf '%s\n' "${{ github.head_ref }}" >
./dependabot-pr/BRANCH_REF
+ printf '%s\n' "${{ github.event.pull_request.head.sha }}" >
./dependabot-pr/PR_HEAD_SHA
Review Comment:
Is this supposed to be a protection against some sort of an attack? Why is
printf more safe than echo?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]