Skip to content

Commit 0ba947b

Browse files
authored
[internal] Update GitHub Actions workflow files (#111)
1 parent fc659db commit 0ba947b

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ jobs:
9090

9191
publish:
9292
name: publish
93+
permissions:
94+
contents: write
9395
needs:
9496
- prerequisites
9597
- build_provider

.github/workflows/prerelease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353

5454
publish:
5555
name: publish
56+
permissions:
57+
contents: write
5658
needs:
5759
- prerequisites
5860
- build_provider

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
generate_release_notes: true
101101
files: dist/*
102102
env:
103-
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
103+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104104

105105
publish_sdk:
106106
name: publish_sdk

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858

5959
publish:
6060
name: publish
61+
permissions:
62+
contents: write
63+
pull-requests: write
6164
needs:
6265
- prerequisites
6366
- build_provider

.github/workflows/run-acceptance-tests.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
22

3+
name: run-acceptance-tests
4+
5+
on:
6+
pull_request:
7+
paths-ignore:
8+
- CHANGELOG.md
9+
repository_dispatch:
10+
types:
11+
- run-acceptance-tests-command
12+
313
env:
414
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -23,6 +33,7 @@ env:
2333
concurrency:
2434
group: ${{ github.workflow }}-${{ github.ref }}
2535
cancel-in-progress: true
36+
2637
jobs:
2738
prerequisites:
2839
if: github.event_name == 'repository_dispatch' ||
@@ -54,6 +65,8 @@ jobs:
5465
comment-notification:
5566
if: github.event_name == 'repository_dispatch'
5667
name: comment-notification
68+
permissions:
69+
pull-requests: write
5770
runs-on: ubuntu-latest
5871
steps:
5972
- id: run-url
@@ -65,7 +78,7 @@ jobs:
6578
body: "Please view the PR build: ${{ steps.run-url.outputs.run-url }}"
6679
issue-number: ${{ github.event.client_payload.github.payload.issue.number }}
6780
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
68-
token: ${{ secrets.PULUMI_BOT_TOKEN }}
81+
token: ${{ secrets.GITHUB_TOKEN }}
6982
lint:
7083
if: github.event_name == 'repository_dispatch' ||
7184
github.event.pull_request.head.repo.full_name == github.repository
@@ -172,11 +185,3 @@ jobs:
172185
name: License Check
173186
uses: ./.github/workflows/license.yml
174187
secrets: inherit
175-
name: run-acceptance-tests
176-
on:
177-
pull_request:
178-
paths-ignore:
179-
- CHANGELOG.md
180-
repository_dispatch:
181-
types:
182-
- run-acceptance-tests-command

0 commit comments

Comments
 (0)