Skip to content

Commit bbe5b5d

Browse files
authored
Merge pull request #823 from secureCodeBox/bugfix/scb-bot-pr-changelog
Fixes misformatted upgrade changelog in the SCB bot's generated PR
2 parents 41fd813 + dc4fe51 commit bbe5b5d

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/scb-bot.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ jobs:
7878
7979
- name: Fetch new release changelog
8080
if: ${{ env.release != env.local && env.release != null }}
81-
run: echo releaseChangelog=$((curl -sL ${{env.versionApi}} ) | jq -r ".body") >> $GITHUB_ENV
81+
# Fetches changelog and filters out any issue references
82+
run: |
83+
changelog=$(curl -sL ${{env.versionApi}} | jq -r ".body" | sed -e 's/#[0-9]\+//g')
84+
echo $changelog
85+
echo releaseChangelog=$changelog >> $GITHUB_ENV
8286
8387
- name: Upgrade Scanner Helm Chart
8488
if: ${{ env.release != env.local && env.prExists == 0 && env.release != null}}
@@ -134,12 +138,12 @@ jobs:
134138
committer: secureCodeBoxBot <securecodebox@iteratec.com>
135139
author: secureCodeBoxBot <securecodebox@iteratec.com>
136140
title: ${{ env.pullRequest }}
137-
body: "This is an automated Pull Request by the SCB-Bot. It upgrades ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}"
138-
branch: "dependencies/upgrading-${{ matrix.scanner }}-to-${{env.release}}"
139-
labels: dependencies,scanner
140-
commit-message: |
141-
Upgrading ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}
141+
body: |
142+
"This is an automated Pull Request by the SCB-Bot. It upgrades ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}"
142143
## Release changes :
143144
${{env.releaseChangelog}}
145+
branch: "dependencies/upgrading-${{ matrix.scanner }}-to-${{env.release}}"
146+
labels: dependencies,scanner
147+
commit-message: "Upgrading ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}"
144148
signoff: true
145149
base: main

0 commit comments

Comments
 (0)