Skip to content

Commit 3d75a77

Browse files
Merge pull request #4 from discoverygarden/SEC-1533
SEC-1533: Remove ssh key requirement
2 parents 7beafec + 70c652f commit 3d75a77

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

action.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
default: us-east-1
1212
ssh-key:
1313
description: The ssh key for composer authentication.
14-
required: true
14+
required: false
1515
composer-auth:
1616
description: Json formatted composer auth data.
1717
required: true
@@ -34,15 +34,20 @@ runs:
3434
id: login-ecr
3535
uses: aws-actions/amazon-ecr-login@v2
3636

37-
- name: Setup Composer credentials
37+
- name: Setup Composer auth.json
38+
shell: bash
39+
run: |
40+
mkdir -p .ddev/homeadditions/.composer
41+
echo '${{ inputs.composer-auth }}' > .ddev/homeadditions/.composer/auth.json
42+
43+
- name: Setup Composer ssh keys
44+
if: inputs.ssh-key
3845
shell: bash
3946
run: |
4047
mkdir -p .ddev/homeadditions/.ssh
4148
echo "${{ inputs.ssh-key }}" > .ddev/homeadditions/.ssh/id_rsa
4249
chmod 700 .ddev/homeadditions/.ssh
4350
chmod 600 .ddev/homeadditions/.ssh/id_rsa
44-
mkdir -p .ddev/homeadditions/.composer
45-
echo '${{ inputs.composer-auth }}' > .ddev/homeadditions/.composer/auth.json
4651
4752
- name: Setup DDEV
4853
uses: ddev/github-action-setup-ddev@v1

0 commit comments

Comments
 (0)