mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Create main.yml
This commit is contained in:
parent
4845f3cf69
commit
e14db5dad2
1 changed files with 31 additions and 0 deletions
31
.github/workflows/main.yml
vendored
Normal file
31
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Contrast Security SCA
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
jobs:
|
||||
Check-Dependency-Vulnerabilities:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.5
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4.2.1
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: build jar
|
||||
run: |
|
||||
mvn clean install -DskipTests
|
||||
|
||||
- name: Contrast SCA Action
|
||||
uses: Contrast-Security-OSS/contrast-sca-action@v2.0.10
|
||||
with:
|
||||
apiKey: ${{ secrets.CONTRAST_API_KEY }}
|
||||
orgId: ${{ secrets.CONTRAST_ORGANIZATION_ID }}
|
||||
authHeader: ${{ secrets.CONTRAST_AUTH_HEADER }}
|
||||
apiUrl: ${{ secrets.CONTRAST_API_URL }}
|
||||
filePath: mypath/to/config/files
|
||||
severity: medium
|
||||
fail: true
|
Loading…
Reference in a new issue