4949 - name : Check if review app exists
5050 id : check_app
5151 continue-on-error : true
52- uses : appleboy/ssh-action@v1.2.2
52+ uses : appleboy/ssh-action@823bd89e131d8d508129f9443cad5855e9ba96f0 # v1.2.4
5353 with :
5454 host : ${{ secrets.REVIEW_APP_SSH_HOST }}
5555 username : dokku
@@ -126,13 +126,13 @@ jobs:
126126
127127 - name : Cloning repo
128128 if : env.SHOULD_DEPLOY == 'true'
129- uses : actions/checkout@v4
129+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
130130 with :
131131 fetch-depth : 0
132132
133133 - name : Start deployment
134134 if : env.SHOULD_DEPLOY == 'true'
135- uses : chrnorm/deployment-action@v2
135+ uses : chrnorm/deployment-action@55729fcebec3d284f60f5bcabbd8376437d696b1 # v2.0.7
136136 id : deployment
137137 with :
138138 token : ${{ github.token }}
@@ -142,7 +142,7 @@ jobs:
142142
143143 - name : Create the review app
144144 if : env.SHOULD_CREATE == 'true'
145- uses : dokku/github-action@master
145+ uses : dokku/github-action@823c08b33e974704528c7c7f3d3d8002426e7634 # v1.9.0
146146 with :
147147 command : review-apps:create
148148 git_remote_url : ${{ secrets.REVIEW_APP_SSH_URL }}
@@ -153,7 +153,7 @@ jobs:
153153
154154 - name : Set site id as build arg
155155 if : env.SHOULD_DEPLOY == 'true'
156- uses : appleboy/ssh-action@v1.2.2
156+ uses : appleboy/ssh-action@823bd89e131d8d508129f9443cad5855e9ba96f0 # v1.2.4
157157 with :
158158 host : ${{ secrets.REVIEW_APP_SSH_HOST }}
159159 username : dokku
@@ -164,7 +164,7 @@ jobs:
164164
165165 - name : Push to dokku
166166 if : env.SHOULD_DEPLOY == 'true'
167- uses : dokku/github-action@v1.0 .0
167+ uses : dokku/github-action@823c08b33e974704528c7c7f3d3d8002426e7634 # v1.9 .0
168168 with :
169169 git_remote_url : ${{ secrets.REVIEW_APP_SSH_URL }}
170170 review_app_name : deploy-preview-${{ env.PR_NUMBER }}--${{ env.SITE }}
@@ -174,7 +174,7 @@ jobs:
174174
175175 - name : Enable SSL with Let's Encrypt
176176 if : env.SHOULD_CREATE == 'true'
177- uses : appleboy/ssh-action@v1.2.2
177+ uses : appleboy/ssh-action@823bd89e131d8d508129f9443cad5855e9ba96f0 # v1.2.4
178178 with :
179179 host : ${{ secrets.REVIEW_APP_SSH_HOST }}
180180 username : dokku
@@ -185,7 +185,7 @@ jobs:
185185
186186 - name : Destroy the review app
187187 if : github.event.action == 'closed' && env.SHOULD_DESTROY == 'true'
188- uses : dokku/github-action@master
188+ uses : dokku/github-action@823c08b33e974704528c7c7f3d3d8002426e7634 # v1.9.0
189189 with :
190190 command : review-apps:destroy
191191 git_remote_url : ${{ secrets.REVIEW_APP_SSH_URL }}
@@ -194,7 +194,7 @@ jobs:
194194
195195 - name : Update deployment status
196196 if : env.SHOULD_DEPLOY == 'true'
197- uses : chrnorm/deployment-status@v2
197+ uses : chrnorm/deployment-status@9a72af4586197112e0491ea843682b5dc280d806 # v2.0.3
198198 with :
199199 token : ${{ github.token }}
200200 environment-url : https://deploy-preview-${{ env.PR_NUMBER }}--${{ env.SITE }}.sandbox.data.developpement-durable.gouv.fr
0 commit comments