Skip to content

Commit 61147b6

Browse files
committed
chore(gh): update stale workflow
Updates to stale workflow: - Limits workflow permissions. - Removes superfluous quotes. - Pins actions to release commit hash. Signed-off-by: Ryan Johnson <[email protected]>
1 parent 060d9d0 commit 61147b6

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

.github/workflows/govmomi-stale.yaml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,36 @@
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-
151
name: Close Stale
162

3+
permissions:
4+
contents: read
5+
issues: write
6+
pull-requests: write
7+
178
on:
189
schedule:
19-
- cron: "0 1 * * *" # daily
10+
- cron: 0 1 * * *
2011

2112
jobs:
2213
stale:
2314
runs-on: ubuntu-latest
2415

2516
steps:
26-
- uses: "actions/stale@v9"
17+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
2718
with:
28-
repo-token: "${{ secrets.GITHUB_TOKEN }}" # No need to setup
19+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2920

3021
stale-issue-message: |-
3122
This issue is stale because it has been open for 90 days with no
3223
activity. It will automatically close after 30 more days of
3324
inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`.
34-
stale-issue-label: "lifecycle/stale"
35-
exempt-issue-labels: "lifecycle/frozen"
25+
stale-issue-label: lifecycle/stale
26+
exempt-issue-labels: lifecycle/frozen
3627

3728
stale-pr-message: |-
38-
This Pull Request is stale because it has been open for 90 days with
29+
This pull request is stale because it has been open for 90 days with
3930
no activity. It will automatically close after 30 more days of
4031
inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`.
41-
stale-pr-label: "lifecycle/stale"
42-
exempt-pr-labels: "lifecycle/frozen"
32+
stale-pr-label: lifecycle/stale
33+
exempt-pr-labels: lifecycle/frozen
4334

4435
days-before-stale: 90
4536
days-before-close: 30

0 commit comments

Comments
 (0)