Skip to content

Commit

Permalink
ci: fix snyk args to match all configs (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-steinfeld authored Jan 7, 2021
1 parent d251177 commit 095b466
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ on:
branches:
- main
pull_request_target:
branches:
branches:
- main

jobs:
build:
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
# 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

- name: create checksum file
uses: hypertrace/github-actions/checksum@main

Expand All @@ -36,10 +36,10 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_READ_USER }}
password: ${{ secrets.DOCKERHUB_READ_TOKEN }}

- name: Build with Gradle
uses: hypertrace/github-actions/gradle@main
with:
with:
args: build dockerBuildImages

validate-helm-charts:
Expand All @@ -58,7 +58,7 @@ jobs:
snyk-scan:
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/[email protected]
with:
Expand All @@ -68,6 +68,6 @@ jobs:
- 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 --configuration-matching='^runtimeClasspath$'
run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit 095b466

Please sign in to comment.