Skip to content

Commit

Permalink
fix: action ci script security (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosansiji authored Jul 17, 2023
1 parent 8a81179 commit d016290
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ steps.comment.outputs.branch }}
- run: echo '${{ github.event.comment.body }}'
- 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 d016290

Please sign in to comment.