Skip to content

Commit

Permalink
Use GITHUB_TOKEN with elevated permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed Nov 5, 2024
1 parent 48af2a8 commit 0eaa172
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ on:
required: false
type: boolean
default: false

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ on:
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours.
- cron: 0 3 * * *

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ on:
required: false
type: boolean
default: false

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ on:
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours.
- cron: 0 3 * * *

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ on:
required: false
type: boolean
default: false

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ on:
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours.
- cron: 0 3 * * *

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ on:
required: false
type: boolean
default: false

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ on:
required: false
type: boolean
default: false

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ on:
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours.
- cron: 0 3 * * *

permissions:
contents: write
issues: write
pull-requests: write

env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down

0 comments on commit 0eaa172

Please sign in to comment.