Skip to content

[BUG] Vault-action does not support authentication only usage #152

Description

@Ameausoone

Describe the bug
I want to use vault-action only to authenticate to vault instance with an approle, and generate a VAULT_TOKEN to use with Terraform and vault-provider, and without retrieve secrets. But vault-action require to specify secrets.

To Reproduce
Use vault-action without secrets :

      - name: Authenticate to Vault
        uses: hashicorp/vault-action@v2.1.0
        with:
          url: https://my-vault-instance
          method: approle
          roleId: ${{ secrets.VAULT_ROLE_ID }}
          secretId: ${{ secrets.VAULT_SECRET_ID }}
          exportToken: true

Expected behavior

vault-action should authenticate and produces a masked environment variable VAULT_TOKEN.

Log Output

Error: Input required and not supplied: secrets

Additional context
N/A

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