This buildpack allows you to easily install and configure the 1Password CLI tool on your Heroku app.
To use this buildpack, follow these steps:
- Add the buildpack to your Heroku app:
heroku buildpacks:add https://github.com/missive/heroku-buildpack-1password-cli
- Create a service account on 1Password by following these steps:
- Log in to your 1Password account.
- Go to the "Settings" section.
- Click on "Service Accounts" in the sidebar.
- Click on "New Service Account" and provide a name for the account.
- Generate a new token for the service account and copy it.
Once you have created the service account, set the OP_SERVICE_ACCOUNT_TOKEN
environment variable with the generated token:
heroku config:set OP_SERVICE_ACCOUNT_TOKEN=your_service_account_token
This token will be used by the buildpack to authenticate with 1Password CLI.
- Deploy your app:
git push heroku master
- Verify that the 1Password CLI is installed and authenticated:
heroku run op user get --me
In order to run processes with ENV set from 1password secrets, follow the Load secrets into the environment guide.
This buildpack is released under the MIT License. See LICENSE for more information.