Skip to content

Commit

Permalink
feat: pass User-Agent information to the CLI (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
edif2008 authored Nov 22, 2022
1 parent 5bd485b commit 61e826f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scripts/exec.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

# User-Agent info for 1Password CLI
export OP_INTEGRATION_NAME="1Password CircleCI Secrets Orb"
export OP_INTEGRATION_ID="CIR"
export OP_INTEGRATION_BUILDNUMBER="1000001"

if [ -n "${PARAM_FLAGS}" ]; then
op run "${PARAM_FLAGS}" -- "$SHELL" -c "${PARAM_COMMAND}"
else
Expand Down
6 changes: 6 additions & 0 deletions src/scripts/export.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

# User-Agent info for 1Password CLI
export OP_INTEGRATION_NAME="1Password CircleCI Secrets Orb"
export OP_INTEGRATION_ID="CIR"
export OP_INTEGRATION_BUILDNUMBER="1000001"

random_heredoc_identifier=$(env LC_ALL=C tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1) || true
{
#shellcheck disable=SC2016
Expand Down

0 comments on commit 61e826f

Please sign in to comment.