-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (32 loc) · 1.44 KB
/
greetings.yml
File metadata and controls
39 lines (32 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Greetings
# Define the events that trigger this workflow
on:
pull_request_target: # Trigger on pull request events targeting the repository
issues: # Trigger on issue events
# Define permissions required for the workflow
permissions:
contents: read # Required to fetch repository contents
concurrency:
group: greetings-${{ github.ref }}
cancel-in-progress: false
jobs:
greeting:
# Specify the runner to use (ubuntu-latest)
runs-on: ubuntu-latest
# Define permissions specific to the job
permissions:
issues: write # Required to write comments on issues
pull-requests: write # Required to write comments on pull requests
steps:
# Step to harden the runner for security purposes
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit # Set egress policy to audit
# Step to send a greeting message for issues and pull requests
- name: First Interaction
uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }} # Use the repository token for authentication
issue-message: "Greetings, thanks for opening an issue, I'll look when I can." # Message for new issues
pr-message: "Greetings, thanks for opening a pull request, I'll look when I can." # Message for new pull requests