File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 1- # .github/workflows/stale-branches.yml
2-
31name : stale-branches.yml – Delete Stale Branches
42
53on :
6- workflow_dispatch : # Manual trigger from GitHub UI
4+ # workflow_dispatch: # Manual trigger from GitHub UI
75 schedule :
86 - cron : ' 0 6 * * 0'
97
10- permissions : {}
8+ permissions :
9+ issues : write
10+ contents : write
1111
1212jobs :
1313 stale_branches :
1414 runs-on : ubuntu-latest
1515 steps :
16+ - name : Harden the runner (Audit all outbound calls)
17+ uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
18+ with :
19+ egress-policy : audit
20+
1621 - name : Stale Branches
17- permissions :
18- issues : write
19- contents : write
20- 21- with :
22+ uses : crs-k/stale-branches@865501af01284d43aef267d4b9aab0f9f1734b12 # v8.2.2
23+ with :
2224 # days-before-delete: 180
2325 # comment-updates: false
2426 # max-issues: 20
2527 tag-committer : true
26- # stale-branch-label: 'stale branch 🗑️'
28+ stale-branch-label : ' stale branch 🗑️'
2729 # compare-branches: 'info'
2830 # branches-filter-regex: '^((?!dependabot))'
2931 # rate-limit: false
You can’t perform that action at this time.
0 commit comments