Skip to content

Commit f2e9744

Browse files
authored
Merge pull request #8499 from varunsh-coder/token-perms
[GitHub] Add minimum GitHub token permissions for workflows
2 parents fa13370 + 7a3372f commit f2e9744

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
schedule:
1010
- cron: '22 1 * * 2'
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
analyze:
1417
name: Analyze

.github/workflows/stale-action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ on:
33
schedule:
44
- cron: "0 0 * * *"
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
stale:
11+
permissions:
12+
issues: write # for actions/stale to close stale issues
13+
pull-requests: write # for actions/stale to close stale PRs
814
runs-on: ubuntu-latest
915
steps:
1016
- uses: actions/stale@v4

0 commit comments

Comments
 (0)