Skip to content

Add ability to inject entire secret to environmentΒ #12

@tomjohnburton

Description

@tomjohnburton

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions