Merge branch 'feature/add-cli' of github.com:1Password/load-secrets-action into feature/add-cli
This commit is contained in:
@@ -33,7 +33,7 @@ install_op_cli() {
|
|||||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/v2.6.0-beta.06/op_linux_amd64_v2.6.0-beta.06.zip"
|
curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/v2.6.0-beta.06/op_linux_amd64_v2.6.0-beta.06.zip"
|
||||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/v2.6.0-beta.06/1password-cli_v2.6.0-beta.06_darwin_arm64.tar.gz"
|
curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/v2.6.0-beta.06/1password-cli_v2.6.0-beta.06_darwin_amd64.tar.gz"
|
||||||
fi
|
fi
|
||||||
unzip -od /usr/local/bin/ op.zip && rm op.zip
|
unzip -od /usr/local/bin/ op.zip && rm op.zip
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,6 @@ extract_using_service_account() {
|
|||||||
# Load environment variables using connect service. Iterate over hem to find 1Password references, load the secret values,
|
# Load environment variables using connect service. Iterate over hem to find 1Password references, load the secret values,
|
||||||
# and make them available as environment variables in the next steps.
|
# and make them available as environment variables in the next steps.
|
||||||
extract_using_connect() {
|
extract_using_connect() {
|
||||||
curl_headers=(-H "Content-Type: application/json" -H "Authorization: Bearer $OP_CONNECT_TOKEN")
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
|
||||||
for possible_ref in $(printenv | grep "=op://" | grep -v "^#"); do
|
for possible_ref in $(printenv | grep "=op://" | grep -v "^#"); do
|
||||||
|
|||||||
Reference in New Issue
Block a user