|
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}} |
20 | 20 | fetch-depth: 0 |
21 | 21 |
|
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 | | -
|
34 | 22 | - name: Login to Docker Hub |
35 | | - uses: docker/login-action@v1 |
| 23 | + uses: docker/login-action@v2 |
36 | 24 | with: |
37 | 25 | username: ${{ secrets.DOCKERHUB_READ_USER }} |
38 | 26 | password: ${{ secrets.DOCKERHUB_READ_TOKEN }} |
39 | 27 |
|
40 | 28 | - name: Build with Gradle |
41 | 29 | uses: hypertrace/github-actions/gradle@main |
42 | 30 | with: |
43 | | - args: build dockerBuildImages |
| 31 | + args: assemble dockerBuildImages |
44 | 32 |
|
45 | 33 | validate-helm-charts: |
46 | | - runs-on: ubuntu-20.04 |
| 34 | + runs-on: ubuntu-22.04 |
47 | 35 | steps: |
48 | 36 | - name: Check out code |
49 | | - uses: actions/checkout@v2.3.4 |
| 37 | + uses: actions/checkout@v3 |
50 | 38 | with: |
51 | 39 | ref: ${{github.event.pull_request.head.ref}} |
52 | 40 | repository: ${{github.event.pull_request.head.repo.full_name}} |
|
55 | 43 | - name: validate charts |
56 | 44 | uses: hypertrace/github-actions/validate-charts@main |
57 | 45 |
|
58 | | - snyk-scan: |
59 | | - runs-on: ubuntu-20.04 |
60 | | - steps: |
61 | | - # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation |
62 | | - - name: Check out code |
63 | | - |
64 | | - with: |
65 | | - ref: ${{github.event.pull_request.head.ref}} |
66 | | - repository: ${{github.event.pull_request.head.repo.full_name}} |
67 | | - fetch-depth: 0 |
68 | | - - name: Setup snyk |
69 | | - uses: snyk/actions/[email protected] |
70 | | - - name: Snyk test |
71 | | - run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git' |
72 | | - env: |
73 | | - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |
0 commit comments