-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 994 Bytes
/
Copy pathsca_scan_base.yml
File metadata and controls
45 lines (38 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: SCA Scan Base
on:
workflow_call:
inputs:
working-path:
description: 'The path of the pom.xml'
required: true
type: string
name-of-snyk-step:
description: 'The name of the job that executes the snyk action'
required: true
type: string
secrets:
SNYK_TOKEN:
required: true
jobs:
snyk-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '19'
cache: 'maven'
- name: checkout repo
uses: actions/checkout@main
- name: build appwish-ollama
run: make appwish
- uses: snyk/actions/setup@master
- uses: actions/checkout@master
- name: ${{inputs.name-of-snyk-test}}
id: snyk-test
working-directory: ${{inputs.working-path}}
run: snyk test
continue-on-error: false
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}