Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from guardian/nori/add-snyk
Browse files Browse the repository at this point in the history
chore: Add snyk monitoring for main branch
  • Loading branch information
NovemberTang committed Jul 25, 2022
2 parents 51a99b1 + ea2dc06 commit 0ec4ad2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This action runs every day at 6 AM and on every push
# If the branch it's running on is main then it will run snyk monitor (reports vulnerabilities to snyk.io)
# Otherwise it will run snyk test
name: Snyk

on:
push:
branches:
- main
workflow_dispatch:

jobs:
security:
uses: guardian/.github/.github/workflows/sbt-node-snyk.yml@main
with:
DEBUG: true
ORG: guardian-capi
SKIP_NODE: true
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
3 changes: 3 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")

addSbtPlugin("com.twitter" % "scrooge-sbt-plugin" % "19.3.0")

addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")

0 comments on commit 0ec4ad2

Please sign in to comment.