From 5a04ae581c9fb83178190132fb91dbad48c36cdb Mon Sep 17 00:00:00 2001 From: Eddy Filip Date: Wed, 14 Dec 2022 14:49:33 +0200 Subject: [PATCH 1/2] Update 1Password CLI to the latest version --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8f478e4..bd35abf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -31,10 +31,10 @@ unset_prev_secrets() { # Install op-cli install_op_cli() { if [[ "$OSTYPE" == "linux-gnu"* ]]; then - curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/v2.7.1-beta.01/op_linux_amd64_v2.7.1-beta.01.zip" + curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/v2.10.0-beta.02/op_linux_amd64_v2.10.0-beta.02.zip" unzip -od /usr/local/bin/ op.zip && rm op.zip elif [[ "$OSTYPE" == "darwin"* ]]; then - curl -sSfLo op.pkg "https://cache.agilebits.com/dist/1P/op2/pkg/v2.7.1-beta.01/op_apple_universal_v2.7.1-beta.01.pkg" + curl -sSfLo op.pkg "https://cache.agilebits.com/dist/1P/op2/pkg/v2.10.0-beta.02/op_apple_universal_v2.10.0-beta.02.pkg" sudo installer -pkg op.pkg -target /usr/local/bin/ && rm op.pkg fi } From fbf9be8f557fe4042bf3a11996f26c42e9540744 Mon Sep 17 00:00:00 2001 From: Eddy Filip Date: Wed, 14 Dec 2022 14:57:06 +0200 Subject: [PATCH 2/2] Pass User-Agent Information to the 1Password CLI --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index bd35abf..ab82ac6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,11 @@ # shellcheck disable=SC2046,SC2001,SC2086 set -e +# Pass User-Agent Inforomation to the 1Password CLI +export OP_INTEGRATION_NAME="1Password GitHub Action" +export OP_INTEGRATION_ID="GHA" +export OP_INTEGRATION_BUILDNUMBER="1010001" + readonly CONNECT="CONNECT" readonly SERVICE_ACCOUNT="SERVICE_ACCOUNT"