Skip to content

Commit 2f73c00

Browse files
authored
[DOCS] Update repository_environments documentation (#3266)
* Update repository_environments documentation Added a note about permissions for GitHub API access. * Update docs template Signed-off-by: Timo Sand <timo.sand@f-secure.com> --------- Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent f494cc6 commit 2f73c00

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/data-sources/repository_environments.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ description: |-
88

99
Use this data source to retrieve information about environments for a repository.
1010

11+
~> Verify you have the correct permissions set up from the [GitHub API docs](https://docs.github.com/en/rest/deployments/environments?apiVersion=2022-11-28#get-an-environment--fine-grained-access-tokens)
12+
1113
## Example Usage
1214

1315
```terraform

templates/data-sources/repository_environments.md.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ description: |-
88

99
Use this data source to retrieve information about environments for a repository.
1010

11+
~> Verify you have the correct permissions set up from the [GitHub API docs](https://docs.github.com/en/rest/deployments/environments?apiVersion=2022-11-28#get-an-environment--fine-grained-access-tokens)
12+
1113
## Example Usage
1214

1315
{{ tffile "examples/data-sources/repository_environments/example_1.tf" }}

0 commit comments

Comments
 (0)