Update maven.yml (#6) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Spring Boot Application | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
soos_dast_analysis_example: | |
name: SOOS DAST test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run SOOS DAST test | |
uses: soos-io/soos-dast-github-action@v2 | |
with: | |
client_id: i78cbw2bh | |
api_key: NTc1MDMzNjMtODU2Ni00MTE4LTkxODYtMTVlN2JkNWQwMjgy | |
project_name: "Mvn plants" | |
scan_mode: "baseline" | |
api_url: "https://api.soos.io/api/" | |
target_url: "https://www.example.com/" | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Get Maven dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build project with Maven | |
run: | | |
mvn -B clean install | |
- name: Test project with Maven | |
run: | | |
mvn test |