Skip to content

Commit 8a76183

Browse files
SONARJAVA-5902 Prevent script injection S7630 (#5367)
1 parent cb47148 commit 8a76183

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Prepare Next Development Iteration
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
nextVersion:
7+
description: Version number of the next iteration
8+
required: true
9+
10+
jobs:
11+
Next-Iteration-Job:
12+
name: Next Iteration Job
13+
runs-on: github-ubuntu-latest-s
14+
permissions:
15+
pull-requests: write
16+
contents: write
17+
18+
steps:
19+
20+
- name: Checkout Sources
21+
uses: actions/checkout@v4
22+
23+
- name: Update Version Number
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NEXT_VERSION: ${{ inputs.nextVersion }}
27+
run: |
28+
git config user.name "${GITHUB_ACTOR}"
29+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
30+
git checkout -b gh-action/next-iteration
31+
mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${NEXT_VERSION}"
32+
git commit -m 'Prepare next development iteration' -a
33+
git push --set-upstream origin gh-action/next-iteration
34+
gh pr create -B master --title 'Prepare next development iteration' --body ''

0 commit comments

Comments
 (0)