Skip to content

Commit

Permalink
Use personal access token
Browse files Browse the repository at this point in the history
Turns out you can't modify org members using a Github action's GITHUB_TOKEN even
if you have it set to `write-all`. You've got to use a personal access token.
I'm using mine for now. If I'm ever removed from the org, the GH membership
management will start failing through Pulumi.
  • Loading branch information
criccomini committed Nov 19, 2024
1 parent 120e189 commit 1326169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
stack-name: slatedb/slatedb-pulumi/prod
comment-on-pr: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
command: up
stack-name: slatedb/slatedb-pulumi/prod
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

0 comments on commit 1326169

Please sign in to comment.