@@ -20,11 +20,11 @@ jobs:
20
20
21
21
steps :
22
22
- name : Checkout
23
- uses : actions/checkout@v3
23
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
24
25
25
- name : Gather metadata
26
26
id : meta
27
- uses : docker/metadata-action@v4
27
+ uses : docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
28
28
with :
29
29
images : ghcr.io/${{ github.repository_owner }}/config-reloader
30
30
flavor : |
@@ -36,23 +36,23 @@ jobs:
36
36
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
37
37
38
38
- name : Set up QEMU
39
- uses : docker/setup-qemu-action@v2
39
+ uses : docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
40
40
with :
41
41
platforms : all
42
42
43
43
- name : Set up Docker Buildx
44
- uses : docker/setup-buildx-action@v2
44
+ uses : docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
45
45
46
46
- name : Login to GitHub Container Registry
47
- uses : docker/login-action@v2
47
+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
48
48
with :
49
49
registry : ghcr.io
50
50
username : ${{ github.actor }}
51
51
password : ${{ github.token }}
52
52
if : github.event_name == 'push'
53
53
54
54
- name : Build and push
55
- uses : docker/build-push-action@v4
55
+ uses : docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
56
56
with :
57
57
context : .
58
58
platforms : linux/amd64,linux/arm64,linux/arm/v7
@@ -63,15 +63,18 @@ jobs:
63
63
labels : ${{ steps.meta.outputs.labels }}
64
64
65
65
- name : Run Trivy vulnerability scanner
66
- uses : aquasecurity/trivy-action@0.9.1
66
+ uses : aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # 0.29.0
67
+ env :
68
+ TRIVY_DB_REPOSITORY : public.ecr.aws/aquasecurity/trivy-db:2
69
+ TRIVY_JAVA_DB_REPOSITORY : public.ecr.aws/aquasecurity/trivy-java-db:1
67
70
with :
68
71
image-ref : " ghcr.io/${{ github.repository_owner }}/config-reloader:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"
69
72
format : " sarif"
70
73
output : " trivy-results.sarif"
71
74
if : github.event_name == 'push'
72
75
73
76
- name : Upload Trivy scan results to GitHub Security tab
74
- uses : github/codeql-action/upload-sarif@v2
77
+ uses : github/codeql-action/upload-sarif@6e5455904168f98c75d8e5ad848b4dc4ab3ae77e # v3.28.7
75
78
with :
76
79
sarif_file : " trivy-results.sarif"
77
80
if : github.event_name == 'push'
0 commit comments