Skip to content

Commit

Permalink
Merge pull request #11 from guardian/add-generic-snyk-workflow
Browse files Browse the repository at this point in the history
Adds generic sbt node snyk workflow
  • Loading branch information
SHession committed Feb 9, 2022
2 parents cbab963 + 7c34166 commit 5832e11
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/sbt-node-snyk.yml
@@ -0,0 +1,41 @@
name: Simple Snyk monitor for SBT + Node

on:
workflow_call:
inputs:
DEBUG:
type: string
required: false
ORG:
type: string
required: true
JAVA_VERSION:
type: string
required: false
default: "11"
secrets:
SNYK_TOKEN:
required: true

jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2

- 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 ${INPUT_DEBUG:+ -d} --all-projects --org="${{ inputs.ORG }}"
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
INPUT_DEBUG: ${{ inputs.DEBUG }}

0 comments on commit 5832e11

Please sign in to comment.