Skip to content

Commit

Permalink
fix: action ci script security (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jun 7, 2024
1 parent 8535b69 commit 5e4c822
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- run: echo "The head of this PR starts with 'release/'"
- uses: actions/checkout@v3
- uses: 94dreamer/auto-release@develop
- uses: TDesignOteam/tdesign-changelog-action@main
id: changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -53,13 +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)
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 5e4c822

Please sign in to comment.