This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
Upgrade to Spring Boot 3 #336
Workflow file for this run
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: Snyk Security Vulnerability Scan | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
tags: | |
- 'v.[0-9]+.[0-9]+.[0-9]+' | |
branches: | |
- 'master' | |
jobs: | |
snyk_scan_test: | |
if: ${{ github.event_name == 'pull_request' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 2 | |
- name: Check changed Deps files | |
uses: tj-actions/changed-files@v35 | |
id: changed-files | |
with: | |
files: | | |
**/build.gradle | |
- uses: snyk/actions/setup@master | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: "8" | |
distribution: 'adopt' | |
- name: Snyk scan for Java dependencies | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: snyk test \ | |
--all-projects \ | |
-d \ | |
--fail-on=all \ | |
--print-deps \ | |
--configuration-matching='^\(compile\|runtime\)' | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
snyk_scan_monitor: | |
if: ${{ github.event_name == 'push' }} | |
strategy: | |
matrix: | |
depsfiles: [ | |
build.gradle, | |
common/jdbc/build.gradle, | |
gcp-cloud-run/build.gradle, | |
common/kdb-java/build.gradle, | |
kdb-mojo-scorer/build.gradle, | |
sql-jdbc-scorer/build.gradle, | |
common/transform/build.gradle, | |
local-rest-scorer/build.gradle, | |
common/rest-java-model/build.gradle, | |
common/rest-spring-api/build.gradle, | |
gcp-vertex-ai-mojo-scorer/build.gradle, | |
aws-sagemaker-hosted-scorer/build.gradle, | |
common/rest-jdbc-spring-api/build.gradle, | |
common/rest-vertex-ai-spring-api/build.gradle, | |
aws-lambda-scorer/lambda-template/build.gradle, | |
aws-lambda-scorer/terraform-recipe/build.gradle | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Extract github branch/tag name | |
shell: bash | |
run: echo "ref=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT | |
id: extract_ref | |
- uses: snyk/actions/setup@master | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: "8" | |
distribution: 'adopt' | |
- name: Snyk scan for Java dependencies - ${{ matrix.depsfiles }} | |
run: snyk monitor \ | |
--org=driverless-ai \ | |
--remote-repo-url=dai-deployment-templates/${{ steps.extract_ref.outputs.ref }} \ | |
--file=${{ matrix.depsfiles }} \ | |
--project-name=DRIVERLESS-AI/dai-deployment-templates/${{ steps.extract_ref.outputs.ref }}/${{ matrix.depsfiles }} \ | |
-d \ | |
--print-deps \ | |
--configuration-matching='^\(compile\|runtime\)' | |
continue-on-error: true | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |