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}}
2020 fetch-depth : 0
2121
22- - name : create checksum file
23- uses : hypertrace/github-actions/checksum@main
24-
25- - name : Cache packages
26- uses : actions/cache@v2
27- with :
28- path : ~/.gradle
29- key : gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
30- restore-keys : |
31- gradle-packages-${{ runner.os }}-${{ github.job }}
32- gradle-packages-${{ runner.os }}
33-
3422 - name : Login to Docker Hub
35- uses : docker/login-action@v1
23+ uses : docker/login-action@v2
3624 with :
3725 username : ${{ secrets.DOCKERHUB_READ_USER }}
3826 password : ${{ secrets.DOCKERHUB_READ_TOKEN }}
3927
4028 - name : Build with Gradle
4129 uses : hypertrace/github-actions/gradle@main
4230 with :
43- args : build dockerBuildImages
31+ args : assemble dockerBuildImages
32+
33+ - name : Run Trivy vulnerability scanner
34+ uses : hypertrace/github-actions/trivy-image-scan@main
35+ with :
36+ image : hypertrace/config-service
37+ output-mode : github
4438
4539 validate-protos :
46- runs-on : ubuntu-20.04
47- container :
48- image : bufbuild/buf:0.35.1
49- credentials :
50- username : ${{ secrets.DOCKERHUB_READ_USER }}
51- password : ${{ secrets.DOCKERHUB_READ_TOKEN }}
40+ runs-on : ubuntu-22.04
5241 # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
5342 steps :
5443 - name : Check out code
55- uses : actions/checkout@v2.3.4
44+ uses : actions/checkout@v3
5645 with :
5746 ref : ${{github.event.pull_request.head.ref}}
5847 repository : ${{github.event.pull_request.head.repo.full_name}}
6958 - name : Check for breaking changes
7059 uses : bufbuild/buf-breaking-action@v1
7160 with :
72- against : ' .git#branch=origin/main'
73-
74- snyk-scan :
75- runs-on : ubuntu-20.04
76- steps :
77- # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
78- - name : Check out code
79- uses : actions/checkout@v2.3.4
80- with :
81- ref : ${{github.event.pull_request.head.ref}}
82- repository : ${{github.event.pull_request.head.repo.full_name}}
83- fetch-depth : 0
84- - name : Setup snyk
85- uses : snyk/actions/setup@0.3.0
86- - name : Snyk test
87- 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'
88- env :
89- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
61+ against : ' .git#branch=origin/main'
0 commit comments