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

snyk fix #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ jobs:
- name: validate charts
uses: hypertrace/github-actions/validate-charts@main

snyk-scan:
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/[email protected]
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0
submodules: recursive

- name: Setup snyk
uses: snyk/actions/[email protected]
- name: Snyk test
run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
GRADLE_OPTS: -Dorg.gradle.workers.max=1 # Snyk doesn't handle parallelism
# snyk-scan:
# runs-on: ubuntu-20.04
# steps:
# # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
# - name: Check out code
# uses: actions/[email protected]
# with:
# ref: ${{github.event.pull_request.head.ref}}
# repository: ${{github.event.pull_request.head.repo.full_name}}
# fetch-depth: 0
# submodules: recursive
#
# - name: Setup snyk
# uses: snyk/actions/[email protected]
# - name: Snyk test
# run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git'
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# GRADLE_OPTS: -Dorg.gradle.workers.max=1 # Snyk doesn't handle parallelism