https://github.com/dopplerhq/cli-action
GitHub Action for installing the Doppler CLI
https://github.com/dopplerhq/cli-action
doppler-cli environment-variables secret-management secrets secrets-manager security
Last synced: 3 months ago
JSON representation
GitHub Action for installing the Doppler CLI
- Host: GitHub
- URL: https://github.com/dopplerhq/cli-action
- Owner: DopplerHQ
- License: apache-2.0
- Created: 2020-05-21T05:27:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T16:38:36.000Z (over 1 year ago)
- Last Synced: 2024-05-09T14:24:46.240Z (over 1 year ago)
- Topics: doppler-cli, environment-variables, secret-management, secrets, secrets-manager, security
- Language: JavaScript
- Homepage: https://cli.doppler.com
- Size: 1.52 MB
- Stars: 43
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Install Doppler CLI action
The [Doppler CLI](https://github.com/DopplerHQ/cli) is the official tool for interacting with your Enclave secrets and configuration. This action installs the latest Doppler CLI into your PATH.
## Example usage
Include this Action as a step in your workflow:
```
uses: dopplerhq/cli-action@v3
```You can see a live example of this Action [here](https://github.com/DopplerHQ/cli/blob/master/.github/workflows/cli-action.yml).
## Configuration
In most cases, you'll need to provide the CLI with an auth token. You can do so via the `DOPPLER_TOKEN` environment variable. In the below example, the token is retrieved from [GitHub secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).
```yaml
name: Example actionon: [push]
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- name: Install CLI
uses: dopplerhq/cli-action@v3
- name: Do something with the CLI
run: doppler secrets --only-names
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
```