Skip to content

Commit efba745

Browse files
Copilotyada
andauthored
Fix welcome workflow failing on fork PRs due to missing write permissions (#83)
* Initial plan * Fix: use pull_request_target to allow write permissions for fork PRs Agent-Logs-Url: https://github.com/microcks/.github/sessions/2e22dda4-018d-4d9f-be58-9aff76abdd67 Co-authored-by: yada <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: yada <[email protected]>
1 parent 16cbd43 commit efba745

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/welcome-new-users.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Welcome New Users with Thanks and Tip non-stargazers ;-)
88
on:
99
issues:
1010
types: [opened]
11-
pull_request:
11+
pull_request_target:
1212
types: [opened, closed]
1313

1414
# Explicitly disable all default GITHUB_TOKEN permissions at the workflow level.
@@ -46,7 +46,7 @@ jobs:
4646
🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.
4747
4848
welcome-pr-opened:
49-
if: github.event_name == 'pull_request' && github.event.action == 'opened'
49+
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
5050
runs-on: ubuntu-latest
5151
permissions:
5252
pull-requests: write
@@ -64,7 +64,7 @@ jobs:
6464
Hope you have a great time there!
6565
6666
welcome-pr-merged:
67-
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
67+
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true
6868
runs-on: ubuntu-latest
6969
permissions:
7070
pull-requests: write

0 commit comments

Comments
 (0)