Skip to content

Commit d960403

Browse files
committed
Add greetings.yml (shared security workflow)
1 parent 1bb8aec commit d960403

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/greetings.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Greetings
2+
3+
on:
4+
issues:
5+
types: [ opened ]
6+
# pull_request_target is required so the greeting can be posted on
7+
# first-time contributors' fork PRs; bot PRs are skipped in the job below.
8+
pull_request_target: # zizmor: ignore[dangerous-triggers]
9+
types: [ opened ]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
greeting:
16+
# Greet humans only — skip Dependabot / bot pull requests (their
17+
# restricted token cannot be granted the write scope the greeting needs).
18+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.user.login != 'dependabot[bot]'
19+
uses: magicsunday/.github/.github/workflows/greetings.yml@main
20+
permissions:
21+
issues: write
22+
pull-requests: write

0 commit comments

Comments
 (0)