vault-action

command module
v0.0.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 7 Imported by: 0

README

Vault Github Action


This is not an official Action and has no affiliation to hashicorp


Authentication Methods

This action supports only JWT authentication with OIDC Provider. To setup your vault instance please follow the github documentation: https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-hashicorp-vault

Example Usage

Authenticate with Vault and get a Vault Token

jobs:
  build:
    # ...
    steps:
      # ...
      - name: Import Secrets
        id: import-secrets
        uses: kdihalas/vault-action@main
        with:
          url: https://vault.mycompany.com:8200
          output_token: "true"
      # ...

Get secrets and export them to env variables, secrets format is like this: <path> <key> | <env_variable>;

jobs:
  build:
    # ...
    steps:
      # ...
      - name: Import Secrets
        id: import-secrets
        uses: kdihalas/vault-action@main
        with:
          url: https://vault.mycompany.com:8200
          secrets: |
            secret/data/ci/aws accessKey | AWS_ACCESS_KEY_ID;
      # ...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL