Skip to content

Commit 100c315

Browse files
authored
Update GitHub Actions workflows. (#581)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 7aabad15419dfed0ca672a9b3a96c75a1b81dd77.
1 parent 7547cd9 commit 100c315

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

.github/workflows/master.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
@@ -174,11 +187,3 @@ jobs:
174187
name: License Check
175188
uses: ./.github/workflows/license.yml
176189
secrets: inherit
177-
name: run-acceptance-tests
178-
on:
179-
pull_request:
180-
paths-ignore:
181-
- CHANGELOG.md
182-
repository_dispatch:
183-
types:
184-
- run-acceptance-tests-command

0 commit comments

Comments
 (0)