Use this step to access your cloud or self hosted infisical secrets and inject them into your pipeline.
Can be run directly with the bitrise CLI,
just git clone this repository, cd into it's folder in your Terminal/Command Line
and call bitrise run test.
Check the bitrise.yml file for required inputs which have to be
added to your .bitrise.secrets.yml file!
Step by step:
- Open up your Terminal / Command Line
git clonethe repositorycdinto the directory of the step (the one you justgit cloned)- Create a
.bitrise.secrets.ymlfile in the same directory ofbitrise.yml(the.bitrise.secrets.ymlis a git ignored file, you can store your secrets in it) - Check the
bitrise.ymlfile for any secret you should set in.bitrise.secrets.yml
- Best practice is to mark these options with something like
# define these in your .bitrise.secrets.yml, in theapp:envssection.
- Once you have all the required secret parameters in your
.bitrise.secrets.ymlyou can just run this step with the bitrise CLI:bitrise run test
An example .bitrise.secrets.yml file:
envs:
- infisical_client: "The client ID from infisical"
- infisical_client_secret: "Infisical Client Secret"
- infisical_project_id: "Infisical Project ID"
- infisical_env: "The slug of the environment you whish to access for your given project"
- infisical_url: "The url of the infisical environment you wish to access, defaults to cloud environment"
- infisical_path: "Path to the secrets within your project"
That's all ;)