Skip to content

Commit de43b9a

Browse files
authored
chore: migrate to pull_request_target for some workflows that require GH token permissions (#1354)
1 parent 673e586 commit de43b9a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/artifact-size-metrics.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Artifact Size Metrics
22
on:
3-
pull_request:
3+
pull_request_target:
44
types: [ opened, synchronize, reopened, labeled, unlabeled ]
55
branches:
66
- main
@@ -40,7 +40,7 @@ jobs:
4040
- name: Put Artifact Size Metrics in CloudWatch
4141
run: ./gradlew putArtifactSizeMetricsInCloudWatch -Prelease=${{ github.event.release.tag_name }}
4242
size-check:
43-
if: github.event_name == 'pull_request'
43+
if: github.event_name == 'pull_request_target'
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: Checkout Sources

.github/workflows/changelog-verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permissions:
44
id-token: write
55

66
on:
7-
pull_request:
7+
pull_request_target:
88
types: [ opened, synchronize, reopened, labeled, unlabeled ]
99
branches:
1010
- main

.github/workflows/kat-transform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Kat Transform
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [ opened, synchronize, reopened, labeled, unlabeled ]
66
branches:
77
- main

0 commit comments

Comments
 (0)