Skip to content

Commit 41dd991

Browse files
ci: fix snyk (#55)
1 parent 61ed070 commit 41dd991

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/pr-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ on:
44
branches:
55
- main
66
pull_request_target:
7-
branches:
7+
branches:
88
- main
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-20.04
1313
steps:
14-
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
14+
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
1515
- name: Check out code
1616
uses: actions/[email protected]
1717
with:
1818
ref: ${{github.event.pull_request.head.ref}}
1919
repository: ${{github.event.pull_request.head.repo.full_name}}
2020
fetch-depth: 0
2121
submodules: recursive
22-
22+
2323
- name: create checksum file
2424
uses: hypertrace/github-actions/checksum@main
2525

@@ -37,10 +37,10 @@ jobs:
3737
with:
3838
username: ${{ secrets.DOCKERHUB_READ_USER }}
3939
password: ${{ secrets.DOCKERHUB_READ_TOKEN }}
40-
40+
4141
- name: Build with Gradle
4242
uses: hypertrace/github-actions/gradle@main
43-
with:
43+
with:
4444
args: build dockerBuildImages
4545

4646
validate-helm-charts:
@@ -60,19 +60,19 @@ jobs:
6060
snyk-scan:
6161
runs-on: ubuntu-20.04
6262
steps:
63-
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
63+
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
6464
- name: Check out code
6565
uses: actions/[email protected]
6666
with:
6767
ref: ${{github.event.pull_request.head.ref}}
6868
repository: ${{github.event.pull_request.head.repo.full_name}}
6969
fetch-depth: 0
7070
submodules: recursive
71-
71+
7272
- name: Setup snyk
7373
uses: snyk/actions/[email protected]
7474
- name: Snyk test
75-
run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --configuration-matching='^runtimeClasspath$'
75+
run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk
7676
env:
7777
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
7878
GRADLE_OPTS: -Dorg.gradle.workers.max=1 # Snyk doesn't handle parallelism

0 commit comments

Comments
 (0)