@@ -31,10 +31,10 @@ jobs:
31
31
runs-on : ubuntu-latest
32
32
steps :
33
33
- name : Checkout code
34
- uses : actions/checkout@v3
34
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
35
35
36
36
- name : lint Dockerfile
37
- uses : hadolint/hadolint-action@v2.0 .0
37
+ uses : hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1 .0
38
38
with :
39
39
dockerfile : docker/Dockerfile
40
40
ignore : DL3008,DL3002,DL3013,DL3059,SC2102
59
59
runs-on : ubuntu-latest
60
60
steps :
61
61
- name : Checkout code
62
- uses : actions/checkout@v3
62
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
63
63
64
64
- name : Build a new docker image with tag
65
65
id : tag-image
@@ -76,16 +76,16 @@ jobs:
76
76
runs-on : ubuntu-latest
77
77
steps :
78
78
- name : Checkout code
79
- uses : actions/checkout@v3
79
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
80
80
81
81
- name : Configure AWS credentials
82
- uses : aws-actions/configure-aws-credentials@v1
82
+ uses : aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
83
83
with :
84
84
role-to-assume : arn:aws:iam::538673716275:role/github-actions-role
85
85
aws-region : ap-southeast-2
86
86
87
87
- name : Push image to ECR
88
- uses : whoan/docker-build-with-cache-action@master
88
+ uses : whoan/docker-build-with-cache-action@d8d3ad518e7ac382b880720d0751815e656fe032 # v8.1.0
89
89
with :
90
90
context : ./docker
91
91
registry : 538673716275.dkr.ecr.ap-southeast-2.amazonaws.com
@@ -101,10 +101,10 @@ jobs:
101
101
102
102
steps :
103
103
- name : Checkout code
104
- uses : actions/checkout@v3
104
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
105
105
106
106
- name : Push image to ghcr
107
- uses : whoan/docker-build-with-cache-action@master
107
+ uses : whoan/docker-build-with-cache-action@d8d3ad518e7ac382b880720d0751815e656fe032 # v8.1.0
108
108
with :
109
109
context : ./docker
110
110
registry : ghcr.io
0 commit comments