-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move to trivy based image scan, removed snyk
- Loading branch information
saxenakshitiz
committed
Jun 27, 2023
1 parent
6b3081e
commit 5c3c102
Showing
5 changed files
with
86 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,30 +9,18 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation | ||
- name: Check out code | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v3 | ||
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 | ||
|
||
- name: Cache packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle | ||
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }} | ||
restore-keys: | | ||
gradle-packages-${{ runner.os }}-${{ github.job }} | ||
gradle-packages-${{ runner.os }} | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_READ_USER }} | ||
password: ${{ secrets.DOCKERHUB_READ_TOKEN }} | ||
|
@@ -54,32 +42,69 @@ jobs: | |
DOCKLE_HOST: "unix:///var/run/docker.sock" | ||
continue-on-error: true | ||
|
||
- name: Run Trivy vulnerability scanner for ingester | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/hypertrace-ingester | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for span-normalizer | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/span-normalizer | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for raw-spans-grouper | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/raw-spans-grouper | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for trace-enricher | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/hypertrace-trace-enricher | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for view creator | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/hypertrace-view-creator | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for view-generator | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/hypertrace-view-generator | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for metrics generator | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/hypertrace-metrics-generator | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for metrics processor | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/hypertrace-metrics-processor | ||
output-mode: github | ||
|
||
- name: Run Trivy vulnerability scanner for metrics exporter | ||
uses: hypertrace/github-actions/trivy-image-scan@main | ||
with: | ||
image: hypertrace/hypertrace-metrics-exporter | ||
output-mode: github | ||
|
||
validate-helm-charts: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
fetch-depth: 0 | ||
|
||
- 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 | ||
- 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$' --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git' | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters