Skip to content
Closed
35 changes: 35 additions & 0 deletions .github/workflows/snyk-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
snyk_test:
name: Snyk Test
runs-on: self-hosted-docker-medium
steps:
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup
id: setup
uses: ./.github/actions/tests/common_test_setup
with:
test_name: snyk
artifactory_user: ${{ vars.ARTIFACTORY_USER }}
artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
- name: run sbt npmInstall
uses: ./.github/actions/sbt/execute_sbt_command
with:
artifactory_user: ${{ vars.ARTIFACTORY_USER }}
artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
cmd: "npmInstall"
- name: run npm-install for Pulumi
uses: ./.github/actions/nix/run_bash_command_in_nix
with:
cmd: |
make cluster/pulumi/build
- name: Run Snyk to check for vulnerabilities
uses: ./.github/actions/nix/run_bash_command_in_nix
with:
cmd: |
snyk auth ${{ secrets.SNYK_TOKEN }}
snyk test --all-projects --exclude=build.sbt
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ apps/splitwell/src/test/resources/splitwell-bundle*.tar.gz
**/SingletonCookie
__pycache__/
docs/src/deployment/observability/metrics_reference.rst
.dccache
8 changes: 8 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.1
ignore: {}
patch: {}
exclude:
global:
- build.sbt
- canton/community
1 change: 1 addition & 0 deletions nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ in pkgs.mkShell {
skopeo
sphinx
sphinx-lint
snyk
tmux
toxiproxy
unzip
Expand Down
Loading