Skip to content

Commit b58d465

Browse files
committed
update actions and use hashes instead of version tag
1 parent 40084a8 commit b58d465

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Shutdown Ephemeral Instance
2+
description: 'Shutdowns an Ephemeral Instance (PR Preview)'
3+
24

35
inputs:
46
localstack-api-key:
@@ -13,7 +15,7 @@ runs:
1315
using: composite
1416
steps:
1517
- name: Download PR artifact
16-
uses: actions/download-artifact@v4
18+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
1719
with:
1820
name: pr-id
1921

@@ -46,7 +48,7 @@ runs:
4648
fi
4749
4850
- name: Update status comment
49-
uses: actions-cool/maintain-one-comment@v3.1.1
51+
uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3
5052
with:
5153
token: ${{ inputs.github-token }}
5254
body: |

ephemeral/startup/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Create PR Preview
2+
description: 'Spins up an Ephemeral Instance for a PR Preview'
23

34
inputs:
45
github-token:
@@ -51,7 +52,7 @@ runs:
5152
}
5253
5354
- name: Download PR artifact
54-
uses: actions/download-artifact@v4
55+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
5556
with:
5657
name: pr-id
5758

@@ -102,7 +103,7 @@ runs:
102103
echo "AWS_ENDPOINT_URL=$endpointUrl" >> $GITHUB_ENV
103104
104105
- name: Upload preview instance URL
105-
uses: actions/upload-artifact@v4
106+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
106107
with:
107108
name: preview-instance-url
108109
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)