Skip to content

Commit

Permalink
fix: action ci script security (Tencent#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosansiji authored and methodchen committed Aug 25, 2023
1 parent 00b2f77 commit bb5a9fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ jobs:
with:
ref: ${{ steps.comment.outputs.branch }}
- name: Commit and push if needed
env:
BODY: ${{ github.event.comment.body }}
run: |
txt=$(cat CHANGELOG.md)
body='${{ github.event.comment.body }}'
echo "${txt%%##*}${body}${txt##*---}" > CHANGELOG.md
echo "${txt%%##*} $BODY ${txt##*---}" > CHANGELOG.md
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
Expand Down

0 comments on commit bb5a9fe

Please sign in to comment.