Skip to content

Commit

Permalink
Sanitize input in workflow already
Browse files Browse the repository at this point in the history
  • Loading branch information
ll-nick committed Nov 21, 2024
1 parent 228c042 commit 20e87b8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:

- name: Compute new version
id: bump_version
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
source version
new_version=$(.github/workflows/compute_version.sh "$VERSION" "${{ github.event.pull_request.body }}")
new_version=$(.github/workflows/compute_version.sh "$VERSION" "${PR_BODY//[^a-zA-Z0-9#]/}")
echo "new_version=$new_version" >> $GITHUB_OUTPUT
update-version-file:
Expand Down

0 comments on commit 20e87b8

Please sign in to comment.