forked from nodejs/security-wg
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 935 Bytes
/
stale.yml
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
name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"
permissions:
# Needed to write a stale message on issues
issues: write
# Needed to close a stale pull-request
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.'
stale-issue-label: 'stale'
exempt-issue-label: 'never stale'
days-before-stale: 90
days-before-close: 14