Skip to content

Commit 2694f41

Browse files
authored
ci: update of files from global .github repo (#323)
1 parent f4ef3a2 commit 2694f41

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/welcome-first-time-contrib.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
name: Welcome first time contributors
55

66
on:
7-
pull_request:
8-
types:
9-
- opened
7+
pull_request_target: # Needed to write welcome comments on fork PRs; script only uses the GitHub API.
8+
types:
9+
- opened # zizmor: ignore[dangerous-triggers]
1010
issues:
1111
types:
1212
- opened
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
welcome:
2020
name: Post welcome message
21-
if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors[bot]"]'), github.actor) }} # zizmor: ignore[obfuscation]
21+
if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors[bot]"]'), github.event.issue.user.login || github.event.pull_request.user.login) }} # zizmor: ignore[obfuscation]
2222
runs-on: ubuntu-latest
2323
permissions:
2424
contents: read # Required to read repository data for checking if it's the user's first contribution

0 commit comments

Comments
 (0)