|
1 | | -# Copyright (c) 2021 VMware, Inc. All Rights Reserved. |
2 | | -# |
3 | | -# Licensed under the Apache License, Version 2.0 (the "License"); |
4 | | -# you may not use this file except in compliance with the License. |
5 | | -# You may obtain a copy of the License at |
6 | | -# |
7 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
8 | | -# |
9 | | -# Unless required by applicable law or agreed to in writing, software |
10 | | -# distributed under the License is distributed on an "AS IS" BASIS, |
11 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | | -# See the License for the specific language governing permissions and |
13 | | -# limitations under the License. |
14 | | - |
15 | 1 | name: Greeting |
16 | 2 |
|
| 3 | +permissions: |
| 4 | + issues: write |
| 5 | + contents: read |
| 6 | + |
17 | 7 | on: |
18 | 8 | issues: |
19 | | - types: ["opened"] |
| 9 | + types: opened |
20 | 10 |
|
21 | 11 | jobs: |
22 | 12 | greeting: |
23 | 13 | name: Send Greeting |
24 | 14 | runs-on: ubuntu-latest |
25 | | - # only send message to users not (yet) associated with repo |
26 | | - # https://docs.github.com/en/graphql/reference/enums#commentauthorassociation |
27 | 15 | if: github.event.issue.author_association == 'NONE' |
28 | 16 |
|
29 | 17 | steps: |
30 | | - - name: Checkout |
31 | | - uses: actions/checkout@v4 |
| 18 | + - name: Checkout Repository |
| 19 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
32 | 20 | with: |
33 | 21 | fetch-depth: 1 |
34 | 22 |
|
35 | | - - name: Render template |
| 23 | + - name: Render Template |
36 | 24 | id: template |
37 | | - |
| 25 | + uses: chuhlomin/render-template@807354a04d9300c9c2ac177c0aa41556c92b3f75 # v1.10 |
38 | 26 | with: |
39 | 27 | template: .github/comment-template.md |
40 | 28 | vars: | |
41 | 29 | author: ${{ github.actor }} |
42 | 30 |
|
43 | | - - name: Create comment |
44 | | - uses: peter-evans/create-or-update-comment@v4 |
| 31 | + - name: Create Comment |
| 32 | + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.1.0 |
45 | 33 | with: |
46 | 34 | issue-number: ${{ github.event.issue.number }} |
47 | 35 | body: ${{ steps.template.outputs.result }} |
0 commit comments