Skip to content

Commit 7d13623

Browse files
Fix script injection (#422)
1 parent bafefea commit 7d13623

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/changie-gen.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,24 @@ jobs:
3939
echo "No changelog exists for this PR, creating a new one"
4040
fi
4141
42-
- name: Create changie log
42+
- name: Setup Go
4343
if: >-
4444
github.event.workflow_run.conclusion == 'success' &&
4545
steps.changelog_check.outputs.exists == 'false'
46-
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2
46+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
4747
with:
48-
version: latest
49-
args: new --kind Dependency --body "${{ github.event.workflow_run.display_title }}"
48+
go-version-file: src/go.mod
49+
50+
- name: Create changie log
51+
if: >-
52+
github.event.workflow_run.conclusion == 'success' &&
53+
steps.changelog_check.outputs.exists == 'false'
54+
env:
55+
PR_TITLE: ${{ github.event.workflow_run.display_title }}
56+
shell: bash
57+
run: |
58+
CHANGIE=$(cd src && go tool -n changie)
59+
"$CHANGIE" new --kind Dependency --body "$PR_TITLE"
5060
5161
- name: Commit & Push changes
5262
if: >-

0 commit comments

Comments
 (0)