-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (35 loc) · 1.02 KB
/
sbt-node-snyk.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
name: Simple Snyk monitor for SBT + Node
on:
workflow_call:
inputs:
DEBUG:
type: string
required: false
JAVA_VERSION:
type: string
required: true
default: "11"
secrets:
SNYK_TOKEN:
required: true
jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Setup debug var
run: echo INPUT_DEBUG=${{ inputs.DEBUG }} >> $GITHUB_ENV
shell: bash
- uses: snyk/actions/setup@0.3.0
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
- uses: actions/setup-java@v2
with:
java-version: ${{ inputs.JAVA_VERSION }}
distribution: "adopt"
- name: Snyk monitor
run: snyk monitor --all-projects ${INPUT_DEBUG:+ -d}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}