Skip to content

Commit 19fb67d

Browse files
committed
update actions and use hashes instead of version tag
1 parent 7c4d408 commit 19fb67d

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: LocalStack Test
22
on:
3+
push:
4+
branches:
5+
- 'main'
36
pull_request:
47
paths-ignore:
58
- ./*.md

ephemeral/shutdown/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
using: composite
1515
steps:
1616
- name: Download PR artifact
17-
uses: actions/download-artifact@v4
17+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
1818
with:
1919
name: pr-id
2020

@@ -69,7 +69,7 @@ runs:
6969
retry shutdown_instance
7070
7171
- name: Update status comment
72-
uses: actions-cool/maintain-one-comment@v3.1.1
72+
uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3
7373
with:
7474
token: ${{ inputs.github-token }}
7575
body: |

ephemeral/startup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ runs:
4040
}
4141
4242
- name: Download PR artifact
43-
uses: actions/download-artifact@v4
43+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
4444
with:
4545
name: pr-id
4646

@@ -143,7 +143,7 @@ runs:
143143
echo "AWS_ENDPOINT_URL=$endpointUrl" >> $GITHUB_ENV
144144
145145
- name: Upload preview instance URL
146-
uses: actions/upload-artifact@v4
146+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
147147
with:
148148
name: preview-instance-url
149149
path: ./ls-preview-url.txt

finish/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ runs:
2121
# Try to get pr artifact from current workflow
2222
- name: Download current PR artifact
2323
id: get-pr-artifact
24-
uses: actions/download-artifact@v4
24+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
2525
continue-on-error: true
2626
with:
2727
name: pr-id
2828

2929
# If the above fails, try to get the latest pr artifact from the PR related workflows
3030
- name: Download latest PR artifact
31-
uses: dawidd6/action-download-artifact@v6
31+
uses: dawidd6/action-download-artifact@0bd50d53a6d7fb5cb921e607957e9cc12b4ce392 # v12
3232
if: ${{ steps.get-pr-artifact.outcome == 'failure' }}
3333
with:
3434
name: pr-id
@@ -44,13 +44,13 @@ runs:
4444
- name: Download preview instance URL
4545
id: get-preview-instance-url-artifact
4646
if: inputs.include-preview
47-
uses: actions/download-artifact@v4
47+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
4848
with:
4949
name: preview-instance-url
5050

5151
# If the above fails, try to get the latest pr artifact from the PR related workflows
5252
- name: Download latest PR artifact
53-
uses: dawidd6/action-download-artifact@v6
53+
uses: dawidd6/action-download-artifact@0bd50d53a6d7fb5cb921e607957e9cc12b4ce392 # v12
5454
if: ${{ steps.get-preview-instance-url-artifact.outcome == 'failure' }}
5555
with:
5656
name: preview-instance-url
@@ -71,7 +71,7 @@ runs:
7171
fi
7272
7373
- name: Update status comment
74-
uses: actions-cool/maintain-one-comment@v3.1.1
74+
uses: actions-cool/maintain-one-comment@v4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3
7575
with:
7676
token: ${{ inputs.github-token }}
7777
body: |

local/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ runs:
1818
- name: Download current workflow's Local State artifact
1919
id: get-state-artifact
2020
if: ${{ inputs.action == 'load' }}
21-
uses: actions/download-artifact@v4
21+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 #v7
2222
continue-on-error: true
2323
with:
2424
name: ${{ inputs.name }}
2525

2626
# If the above fails, try to get the latest artifact from given workflow
2727
- name: Download latest Local State artifact
28-
uses: dawidd6/action-download-artifact@v6
28+
uses: dawidd6/action-download-artifact@0bd50d53a6d7fb5cb921e607957e9cc12b4ce392 #v12
2929
if: ${{ inputs.action == 'load' && steps.get-state-artifact.outcome == 'failure' }}
3030
with:
3131
name: ${{ inputs.name }}
@@ -49,7 +49,7 @@ runs:
4949
ACTION: "${{ inputs.action }}"
5050
5151
- name: Upload LocalStack State
52-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
5353
if: ${{ inputs.action == 'save' }}
5454
with:
5555
name: ${{ inputs.name }}

prepare/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ runs:
1717
run: echo ${{ github.event.number }} > ./pr-id.txt
1818

1919
- name: Upload PR number
20-
uses: actions/upload-artifact@v4
20+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
2121
with:
2222
name: pr-id
2323
path: ./pr-id.txt
2424

2525
- name: Create initial PR comment
26-
uses: actions-cool/maintain-one-comment@v3.1.1
26+
uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3
2727
with:
2828
token: ${{ inputs.github-token }}
2929
body: |

0 commit comments

Comments
 (0)