Skip to content

Commit 834c98c

Browse files
[fix](build): Actions(syntax) (#692)
Signed-off-by: Ralph Hightower <[email protected]>
1 parent 29275c3 commit 834c98c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/stale-branches.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1-
# .github/workflows/stale-branches.yml
2-
31
name: stale-branches.yml – Delete Stale Branches
42

53
on:
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

1212
jobs:
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-
uses: crs-k/[email protected]
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

0 commit comments

Comments
 (0)