Skip to content

Commit 0c7554f

Browse files
pin used action hashes, add dependabot config (#48)
Co-authored-by: Alexander Rashed <alexander.rashed@localstack.cloud>
1 parent 9392b05 commit 0c7554f

File tree

6 files changed

+31
-21
lines changed

6 files changed

+31
-21
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
groups:
8+
github-actions:
9+
patterns:
10+
- "*"

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
name: 'Test LocalStack GitHub Action'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
1717

1818
# We must hack the action call as remote to be able to use the relative paths
1919
# Could it break with different CWD? 🤔
2020
- name: Start LocalStack
21-
uses: jenseng/dynamic-uses@v1
21+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
2222
with:
2323
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
2424
with: |-
@@ -42,12 +42,12 @@ jobs:
4242
name: 'Test LocalStack Version with Github Actions'
4343
runs-on: ubuntu-latest
4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
4646

4747
# We must hack the action call as remote to be able to use the relative paths
4848
# Could it break with different CWD? 🤔
4949
- name: Start LocalStack
50-
uses: jenseng/dynamic-uses@v1
50+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
5151
with:
5252
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
5353
with: |-
@@ -71,10 +71,10 @@ jobs:
7171
runs-on: ubuntu-latest
7272
steps:
7373
- name: ⚡️ Checkout the repository
74-
uses: actions/checkout@v3
74+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
7575

7676
- name: Start LocalStack
77-
uses: jenseng/dynamic-uses@v1
77+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
7878
with:
7979
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
8080
with: |-
@@ -94,7 +94,7 @@ jobs:
9494
awslocal sqs create-queue --queue-name test-queue
9595
9696
- name: Save the Cloud Pod
97-
uses: jenseng/dynamic-uses@v1
97+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
9898
with:
9999
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
100100
with: |-
@@ -111,10 +111,10 @@ jobs:
111111
runs-on: ubuntu-latest
112112
steps:
113113
- name: ⚡️ Checkout the repository
114-
uses: actions/checkout@v3
114+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
115115

116116
- name: Start LocalStack
117-
uses: jenseng/dynamic-uses@v1
117+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
118118
with:
119119
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
120120
with: |-
@@ -139,7 +139,7 @@ jobs:
139139
awslocal sqs delete-queue --queue-url $(awslocal sqs get-queue-url --queue-name test-queue --output text)
140140
141141
- name: Save the State Artifact
142-
uses: jenseng/dynamic-uses@v1
142+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
143143
with:
144144
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
145145
with: |-

.github/workflows/ephemeral.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
name: 'Test ephemeral instance workflow'
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
1111

1212
- name: Deploy Ephemeral Instance
13-
uses: jenseng/dynamic-uses@v1
13+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
1414
with:
1515
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
1616
with: |-
@@ -67,7 +67,7 @@ jobs:
6767
# We want explicit shutdown
6868
- name: Shutdown ephemeral instance
6969
if: ${{ always() }}
70-
uses: jenseng/dynamic-uses@v1
70+
uses: jenseng/dynamic-uses@26a7fa196ecfc98e02d08d65a09d03ab999683ae # v1
7171
with:
7272
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
7373
with: |-

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ runs:
9797
shell: bash
9898
9999
- name: Install tools
100-
uses: jenseng/dynamic-uses@v1
100+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
101101
if: ${{ inputs.skip-startup == 'true' || inputs.state-backend == 'ephemeral' || inputs.state-action == 'save' }}
102102
with:
103103
uses: ${{ env.GH_ACTION_ROOT }}/tools
@@ -107,7 +107,7 @@ runs:
107107
}
108108
109109
- name: Start Localstack
110-
uses: jenseng/dynamic-uses@v1
110+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
111111
if: ${{ inputs.skip-startup != 'true' && inputs.state-backend != 'ephemeral' && inputs.state-action != 'save' }}
112112
with:
113113
# now we can dynamically determine sub-action path 🥳
@@ -126,7 +126,7 @@ runs:
126126
127127
- name: Create Ephemeral Instance
128128
if: ${{ inputs.state-action == 'start' && inputs.state-backend == 'ephemeral' }}
129-
uses: jenseng/dynamic-uses@v1
129+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
130130
with:
131131
uses: ${{ env.GH_ACTION_ROOT }}/ephemeral/startup
132132
with: |-
@@ -141,7 +141,7 @@ runs:
141141
# Use different artifact from current workflow's by passing the workflow's id as WORKFLOW_ID env variable
142142
- name: Manage state
143143
if: ${{ inputs.state-action == 'save' || inputs.state-action == 'load' }}
144-
uses: jenseng/dynamic-uses@v1
144+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
145145
with:
146146
uses: ${{ env.GH_ACTION_ROOT }}/${{ inputs.state-backend }}
147147
with: |-
@@ -152,7 +152,7 @@ runs:
152152
153153
- name: Display Ephemeral Instance URL
154154
if: ${{ inputs.state-action == 'start' && inputs.state-backend == 'ephemeral' && (inputs.include-preview == 'true' || inputs.ci-project != '') }}
155-
uses: jenseng/dynamic-uses@v1
155+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
156156
with:
157157
uses: ${{ env.GH_ACTION_ROOT }}/finish
158158
with: |-
@@ -164,7 +164,7 @@ runs:
164164
165165
- name: Stop Ephemeral Instance
166166
if: ${{ (inputs.skip-ephemeral-stop == 'false' || inputs.state-action == 'stop') && inputs.state-backend == 'ephemeral' }}
167-
uses: jenseng/dynamic-uses@v1
167+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
168168
with:
169169
uses: ${{ env.GH_ACTION_ROOT }}/ephemeral/shutdown
170170
with: |-

ephemeral/startup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ runs:
4242
4343
- name: Initial PR comment
4444
if: inputs.github-token
45-
uses: jenseng/dynamic-uses@v1
45+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
4646
with:
4747
uses: ${{ env.GH_ACTION_ROOT }}/prepare
4848
with: |-

startup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ runs:
5050
shell: bash
5151
5252
- name: Install tools
53-
uses: jenseng/dynamic-uses@v1
53+
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
5454
with:
5555
uses: ${{ env.GH_ACTION_ROOT }}/tools
5656
with: |-

0 commit comments

Comments
 (0)