Skip to content

Pin the the jenseng/dynamic-uses transitive GH Action dependency to a hash #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# We must hack the action call as remote to be able to use the relative paths
# Could it break with different CWD? 🤔
- name: Start LocalStack
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
# We must hack the action call as remote to be able to use the relative paths
# Could it break with different CWD? 🤔
- name: Start LocalStack
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand All @@ -74,7 +74,7 @@ jobs:
uses: actions/checkout@v3

- name: Start LocalStack
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand All @@ -94,7 +94,7 @@ jobs:
awslocal sqs create-queue --queue-name test-queue

- name: Save the Cloud Pod
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand All @@ -114,7 +114,7 @@ jobs:
uses: actions/checkout@v3

- name: Start LocalStack
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand All @@ -139,7 +139,7 @@ jobs:
awslocal sqs delete-queue --queue-url $(awslocal sqs get-queue-url --queue-name test-queue --output text)

- name: Save the State Artifact
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ephemeral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3

- name: Deploy Ephemeral Instance
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
# We want explicit shutdown
- name: Shutdown ephemeral instance
if: ${{ always() }}
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: LocalStack/setup-localstack@${{ env.GH_ACTION_VERSION }}
with: |-
Expand Down
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ runs:
shell: bash

- name: Install tools
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
if: ${{ inputs.skip-startup == 'true' || inputs.state-backend == 'ephemeral' || inputs.state-action == 'save' }}
with:
uses: ${{ env.GH_ACTION_ROOT }}/tools
Expand All @@ -107,7 +107,7 @@ runs:
}

- name: Start Localstack
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
if: ${{ inputs.skip-startup != 'true' && inputs.state-backend != 'ephemeral' && inputs.state-action != 'save' }}
with:
# now we can dynamically determine sub-action path 🥳
Expand All @@ -126,7 +126,7 @@ runs:

- name: Create Ephemeral Instance
if: ${{ inputs.state-action == 'start' && inputs.state-backend == 'ephemeral' }}
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: ${{ env.GH_ACTION_ROOT }}/ephemeral/startup
with: |-
Expand All @@ -141,7 +141,7 @@ runs:
# Use different artifact from current workflow's by passing the workflow's id as WORKFLOW_ID env variable
- name: Manage state
if: ${{ inputs.state-action == 'save' || inputs.state-action == 'load' }}
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: ${{ env.GH_ACTION_ROOT }}/${{ inputs.state-backend }}
with: |-
Expand All @@ -152,7 +152,7 @@ runs:

- name: Display Ephemeral Instance URL
if: ${{ inputs.state-action == 'start' && inputs.state-backend == 'ephemeral' && (inputs.include-preview == 'true' || inputs.ci-project != '') }}
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: ${{ env.GH_ACTION_ROOT }}/finish
with: |-
Expand All @@ -164,7 +164,7 @@ runs:

- name: Stop Ephemeral Instance
if: ${{ (inputs.skip-ephemeral-stop == 'false' || inputs.state-action == 'stop') && inputs.state-backend == 'ephemeral' }}
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: ${{ env.GH_ACTION_ROOT }}/ephemeral/shutdown
with: |-
Expand Down
2 changes: 1 addition & 1 deletion ephemeral/startup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:

- name: Initial PR comment
if: inputs.github-token
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: ${{ env.GH_ACTION_ROOT }}/prepare
with: |-
Expand Down
2 changes: 1 addition & 1 deletion startup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ runs:
shell: bash

- name: Install tools
uses: jenseng/dynamic-uses@v1
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb # v1
with:
uses: ${{ env.GH_ACTION_ROOT }}/tools
with: |-
Expand Down