forked from snyk-labs/java-goof
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 1.02 KB
/
open-source-test.yml
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
name: Snyk Open Source Test
on:
workflow_dispatch:
workflow_call:
push:
branches:
- 'main'
jobs:
open-source-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python Dependencies
run: pip install -r sample-python/requirements.txt
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
cache: 'maven'
- name: Maven verify
run: mvn --batch-mode --update-snapshots verify
- name: Install Maven dependencies
run: mvn clean install
- uses: snyk/actions/setup@master
- name: Test Open Source Dependencies with Snyk
run: snyk test --all-projects
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}