Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to inject entire secret to environment #12

Open
tomjohnburton opened this issue Jun 16, 2022 · 3 comments
Open

Add ability to inject entire secret to environment #12

tomjohnburton opened this issue Jun 16, 2022 · 3 comments
Labels
enhancement New feature or request tracked Issue is tracked in 1Password's internal ticketing system as well.

Comments

@tomjohnburton
Copy link

Instead of specifying each secret individually, I would love to be able to just reference the vault and secret, and the action creates all the env vars.

For example:

on: push
jobs:
  hello-world:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Load secret
        uses: 1password/load-secrets-action@v1
        with:
          inject_all: true
        env:
          OP_CONNECT_HOST: <Your Connect instance URL>
          OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }}
          _: op://app-cicd/hello-world
$ env
A=123
B=234
C=456
...
@dustin-ruetz dustin-ruetz added enhancement New feature or request tracked Issue is tracked in 1Password's internal ticketing system as well. labels May 26, 2023
@dustin-ruetz
Copy link
Contributor

Hi @tomjohnburton - thanks for reaching out and for this suggestion. We can't commit to any timeline for this particular feature/enhancement request, but I can confirm that we have tracked it internally.

@lltr
Copy link

lltr commented Oct 1, 2023

Need this, currently there's no way to export my 36 environment variables secrets without typing them all for each project, even with the new install-cli-action using 1Password CLI without saving it as a note.

@shyim
Copy link

shyim commented Nov 28, 2023

I built exactly for that my own action: https://github.com/shyim/1password-load-secrets-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tracked Issue is tracked in 1Password's internal ticketing system as well.
Projects
None yet
Development

No branches or pull requests

4 participants