You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-4Lines changed: 37 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,39 @@ This action enables you to fetch Doppler secrets for use in your GitHub Actions.
6
6
7
7
## Configuration
8
8
9
-
This action requires a [Doppler Service Token](https://docs.doppler.com/docs/service-tokens) to provide read-only access to secrets for a specific Config within a [Project](https://docs.doppler.com/docs/create-project).
9
+
The action can be configured in two ways:
10
+
11
+
* Service Token (recommended)
12
+
* Personal Token with Project and Config
13
+
14
+
### Service Token
15
+
16
+
A [Doppler Service Token](https://docs.doppler.com/docs/service-tokens) provides read-only access to a single config and is recommended due to its limited access scope.
10
17
11
18
Create a GitHub repository secret named `DOPPLER_TOKEN` or if using multiple Service Tokens (e.g. for a Monorepo), you can prefix the secret name using with application name, e.g. `AUTH_API_DOPPLER_TOKEN`.
12
19
20
+
Then supply the Service Token using the `doppler-token` input:
21
+
22
+
```yaml
23
+
- uses: dopplerhq/secrets-fetch-action@v1.1.0
24
+
id: doppler
25
+
with:
26
+
doppler-token: ${{ secrets.DOPPLER_TOKEN }}
27
+
```
28
+
29
+
### Personal Token
30
+
31
+
A Doppler Personal Token provides read/write access to every Project and Config accessible for that account and should only be used when necessary. The `doppler-project` and `doppler-config` inputs must be provided when using a Personal Token:
0 commit comments