Skip to content

Commit 4c7e356

Browse files
authored
CI: Add more permissions to the Greetings workflow to fix the resource issue (#4181)
1 parent 300a540 commit 4c7e356

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/welcome.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Greet first-time contributors.
2+
#
3+
# It runs in issues and pull requests from forks.
24

35
name: Greet First-Time Contributors
46

@@ -13,10 +15,13 @@ on:
1315
permissions:
1416
issues: write
1517
pull-requests: write
18+
id-token: write
19+
contents: read
1620

1721
jobs:
1822
greeting:
1923
name: Greet First-Time Contributors
24+
if: github.event_name == 'issues' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
2025
runs-on: ubuntu-latest
2126

2227
steps:

0 commit comments

Comments
 (0)