GitHub Action
Get Infisical Secrets
v0.0.4
Latest version
This action will fetch secrets from infisical instance to Github actions workflow.
NOTE: Applies only for self-hosted Infisical instances now.
Input parameter | Descripton | Default value | Required |
---|---|---|---|
infisical_url | The url of the infisical instance eg: https://app.infisical-host.com |
None | yes |
output_file | File path where the environment variables will be written | .env | yes |
service_token | Service token created from infisical | None | yes |
- Add
INFISICAL_SERVICE_TOKEN
,INFISICAL_URL
andOUTPUT_FILE
to repository/environment secrets or variables.
build:
runs-on: ubuntu-latest
steps:
- run: sudo apt update; sudo apt install curl jq -y
- name: Get Infisical Secrets
uses: DMJoh/infisical-action@v0.0.4
with:
service_token: ${{ secrets.INFISICAL_SERVICE_TOKEN }}
output_file: ${{ vars.OUTPUT_FILE }}
infisical_url: ${{ secrets.INFISICAL_URL }}