Skip to content

Commit b011559

Browse files
Update complete-workflow.yml
1 parent 42b089d commit b011559

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/complete-workflow.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jobs:
66
runs-on: ubuntu-latest
77
name: Run unit tests and SAST scan on the source code
88
steps:
9-
- uses: actions/checkout@v2
10-
- name: Set up JDK 11
11-
uses: actions/setup-java@v2
9+
- uses: actions/checkout@v3
10+
- name: Set up JDK 17
11+
uses: actions/setup-java@v3
1212
with:
13-
java-version: '11'
14-
distribution: 'temurin'
13+
java-version: '17'
14+
distribution: 'adopt'
1515
cache: maven
1616
- name: Build with Maven cloud
17-
run: mvn -B verify sonar:sonar -Dsonar.projectKey=javaprojectreachability -Dsonar.organization=javaprojectreachability -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
17+
run: mvn -B verify sonar:sonar -Dsonar.projectKey=javaprojectreachability -Dsonar.organization=javaprojectreachability -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -44,4 +44,4 @@ jobs:
4444
docker_name: 'owasp/zap2docker-stable'
4545
target: 'http://testphp.vulnweb.com/'
4646
rules_file_name: '.zap/rules.tsv'
47-
cmd_options: '-a'
47+
cmd_options: '-a'

0 commit comments

Comments
 (0)