99
1010jobs :
1111 build :
12- runs-on : ubuntu-20 .04
12+ runs-on : ubuntu-22 .04
1313 steps :
1414 # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
1515 - name : Check out code
16- uses : actions/checkout@v2.3.4
16+ uses : actions/checkout@v3
1717 with :
1818 ref : ${{github.event.pull_request.head.ref}}
1919 repository : ${{github.event.pull_request.head.repo.full_name}}
@@ -23,34 +23,22 @@ jobs:
2323 - name : Ensure submodules point to commit from main branch
2424 run : git submodule foreach --recursive "git merge-base --is-ancestor HEAD origin/main"
2525
26- - name : create checksum file
27- uses : hypertrace/github-actions/checksum@main
28-
29- - name : Cache packages
30- uses : actions/cache@v2
31- with :
32- path : ~/.gradle
33- key : gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
34- restore-keys : |
35- gradle-packages-${{ runner.os }}-${{ github.job }}
36- gradle-packages-${{ runner.os }}
37-
3826 - name : Login to Docker Hub
39- uses : docker/login-action@v1
27+ uses : docker/login-action@v2
4028 with :
4129 username : ${{ secrets.DOCKERHUB_READ_USER }}
4230 password : ${{ secrets.DOCKERHUB_READ_TOKEN }}
4331
4432 - name : Build with Gradle
4533 uses : hypertrace/github-actions/gradle@main
4634 with :
47- args : build dockerBuildImages
35+ args : assemble dockerBuildImages
4836
4937 validate-helm-charts :
50- runs-on : ubuntu-20 .04
38+ runs-on : ubuntu-22 .04
5139 steps :
5240 - name : Check out code
53- uses : actions/checkout@v2.3.4
41+ uses : actions/checkout@v3
5442 with :
5543 ref : ${{github.event.pull_request.head.ref}}
5644 repository : ${{github.event.pull_request.head.repo.full_name}}
5947
6048 - name : validate charts
6149 uses : hypertrace/github-actions/validate-charts@main
62-
63- snyk-scan :
64- runs-on : ubuntu-20.04
65- steps :
66- # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
67- - name : Check out code
68- 69- with :
70- ref : ${{github.event.pull_request.head.ref}}
71- repository : ${{github.event.pull_request.head.repo.full_name}}
72- fetch-depth : 0
73- submodules : recursive
74-
75- - name : Setup snyk
76- uses :
snyk/actions/[email protected] 77- - name : Snyk test
78- run : snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git'
79- env :
80- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
81- GRADLE_OPTS : -Dorg.gradle.workers.max=1 # Snyk doesn't handle parallelism
0 commit comments