Skip to content

Commit 2726988

Browse files
authored
Remove shell from command substitutions (#20)
Fixes: ``` /home/runner/work/_temp/f6a41f63-67e6-4f49-8a60-e288a9330790.sh: line 16: shell: command not found ``` Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 2302a56 commit 2726988

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

action.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2022 Chainguard, Inc.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
name: 'Setup chainctl'
4+
name: "Setup chainctl"
55
description: |
66
This action sets up the Chainguard chainctl CLI and authenticates
77
it against the target environment.
@@ -56,15 +56,14 @@ inputs:
5656
The location of the chainctl config file to use. These values
5757
override the default configuration values in the binary.
5858
required: false
59-
default: ''
59+
default: ""
6060

6161
retry-all-errors:
6262
description: |
6363
Whether to retry on all errors.
6464
required: false
6565
default: false
6666

67-
6867
runs:
6968
using: "composite"
7069

@@ -131,7 +130,7 @@ runs:
131130
exit 1
132131
fi
133132
if [ "${{ env.EXPORT_AUTH }}" == "true" ]; then
134-
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(shell chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
133+
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
135134
fi
136135
137136
- name: Authenticate with Chainguard (DEPRECATED invite-code)
@@ -161,5 +160,5 @@ runs:
161160
exit 1
162161
fi
163162
if [ "${{ env.EXPORT_AUTH }}" == "true" ]; then
164-
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(shell chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
163+
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
165164
fi

0 commit comments

Comments
 (0)