Skip to content

Update maven.yml (#7) #4

Update maven.yml (#7)

Update maven.yml (#7) #4

Workflow file for this run

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 package
- name: Test project with Maven
run: |
mvn test