Skip to content

Commit c78c065

Browse files
committed
docs: Advise setting GITHUB_TOKEN to avoid rate limits
1 parent bb14454 commit c78c065

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CHANGELOG
22

33
- feat: Add deletion of stack after destroy (remove flag)
4+
- docs: Advise setting GITHUB_TOKEN to avoid rate limits
45

56
--
67

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
stack-name: org-name/stack-name
3030
env:
3131
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Avoid GitHub rate limits (see below)
3233
```
3334
3435
This will check out the existing directory and run `pulumi preview`.
@@ -41,8 +42,8 @@ The action can be configured with the following arguments:
4142
values are `up` (update), `refresh`, `destroy` and `preview`.
4243

4344
- `stack-name` (required) - The name of the stack that Pulumi will be operating
44-
on. Use the fully quaified org-name/stack-name when operating on a stack outside
45-
of your individual account.
45+
on. Use the fully quaified org-name/stack-name when operating on a stack
46+
outside of your individual account.
4647

4748
- `work-dir` (optional) - The location of your Pulumi files. Defaults to `./`.
4849

@@ -105,8 +106,8 @@ The action can be configured with the following arguments:
105106
`Pulumi.<stack-name>.yaml` file that you will need to add back to source
106107
control as part of the action if you wish to perform any further tasks with
107108
that stack.
108-
- `remove` - (optional) Removes the target stack if all resources are
109-
destroyed. Used only with `destroy` command.
109+
- `remove` - (optional) Removes the target stack if all resources are destroyed.
110+
Used only with `destroy` command.
110111
- `pulumi-version` - (optional) Install a specific version of the Pulumi CLI.
111112
Defaults to "^3"
112113

@@ -115,6 +116,10 @@ By default, this action will try to authenticate Pulumi with the
115116
`PULUMI_ACCESS_TOKEN` then you will need to specify an alternative backend via
116117
the `cloud-url` argument.
117118

119+
If you are using any Pulumi plugins then you should also set the `GITHUB_TOKEN`
120+
environment variable in order to avoid hitting GitHub rate limits. You can set
121+
it to the default `${{ secrets.GITHUB_TOKEN }}`.
122+
118123
### Stack Outputs
119124

120125
[Stack outputs](https://www.pulumi.com/docs/intro/concepts/stack/#outputs) are

0 commit comments

Comments
 (0)