Skip to content

Commit 1786a02

Browse files
authored
ci: scope down GitHub Token permissions (#1202)
* ci: scope down permissions for build-and-test.yaml * ci: scope down permissions for stale.yml
1 parent 8c84d84 commit 1786a02

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ env:
1818
GITHUB_TOKEN: ${{ secrets.EC2_BOT_GITHUB_TOKEN }}
1919
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
fastTests:
2326
name: Fast Test

.github/workflows/stale.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
schedule:
55
- cron: "0 17 * * *" # Runs every day at 12:00PM CST
66

7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
711
jobs:
812
stale:
913
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)