Skip to content

Commit f36e14f

Browse files
authored
GitHub Workflows security hardening (#2755)
* build: harden closed-issue-message.yml permissions Signed-off-by: Alex <[email protected]> * build: harden stale_issues.yml permissions Signed-off-by: Alex <[email protected]>
1 parent f8c9bf3 commit f36e14f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/closed-issue-message.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Closed Issue Message
22
on:
33
issues:
44
types: [closed]
5+
permissions: {}
56
jobs:
67
auto_comment:
8+
permissions:
9+
issues: write # to comment on issues
710
runs-on: ubuntu-latest
811
steps:
912
- uses: aws-actions/closed-issue-message@v1

.github/workflows/stale_issues.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
schedule:
66
- cron: "0 0 * * *"
77

8+
permissions: {}
89
jobs:
910
cleanup:
11+
permissions:
12+
issues: write # to label, comment and close issues
13+
pull-requests: write # to label, comment and close pull requests
14+
1015
runs-on: ubuntu-latest
1116
name: Stale issue job
1217
steps:

0 commit comments

Comments
 (0)