9
9
10
10
jobs :
11
11
build :
12
- runs-on : ubuntu-20 .04
12
+ runs-on : ubuntu-22 .04
13
13
steps :
14
14
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
15
15
- name : Check out code
16
- uses : actions/checkout@v2.3.4
16
+ uses : actions/checkout@v3
17
17
with :
18
18
ref : ${{github.event.pull_request.head.ref}}
19
19
repository : ${{github.event.pull_request.head.repo.full_name}}
@@ -23,34 +23,22 @@ jobs:
23
23
- name : Ensure submodules point to commit from main branch
24
24
run : git submodule foreach --recursive "git merge-base --is-ancestor HEAD origin/main"
25
25
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
-
38
26
- name : Login to Docker Hub
39
- uses : docker/login-action@v1
27
+ uses : docker/login-action@v2
40
28
with :
41
29
username : ${{ secrets.DOCKERHUB_READ_USER }}
42
30
password : ${{ secrets.DOCKERHUB_READ_TOKEN }}
43
31
44
32
- name : Build with Gradle
45
33
uses : hypertrace/github-actions/gradle@main
46
34
with :
47
- args : build dockerBuildImages
35
+ args : assemble dockerBuildImages
48
36
49
37
validate-helm-charts :
50
- runs-on : ubuntu-20 .04
38
+ runs-on : ubuntu-22 .04
51
39
steps :
52
40
- name : Check out code
53
- uses : actions/checkout@v2.3.4
41
+ uses : actions/checkout@v3
54
42
with :
55
43
ref : ${{github.event.pull_request.head.ref}}
56
44
repository : ${{github.event.pull_request.head.repo.full_name}}
59
47
60
48
- name : validate charts
61
49
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