Skip to content

Commit 6f98026

Browse files
set explicit token permissions (#828)
Former-commit-id: 2923b24
1 parent c11960b commit 6f98026

6 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/check_r_dependencies.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
1923
jobs:
2024
check-r-dependencies:
2125
runs-on: ubuntu-latest

.github/workflows/comment_pull_request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request_target:
55
types: [opened, synchronize, reopened, ready_for_review]
66

7+
permissions:
8+
pull-requests: write
9+
710
jobs:
811
comment_pr:
912

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened, ready_for_review]
88

9+
permissions:
10+
contents: write
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.ref }}
1114
cancel-in-progress: true

.github/workflows/process_results.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
process_results:
1619
runs-on: ubuntu-latest

.github/workflows/run_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
types:
1111
- 'submitted'
1212

13+
permissions:
14+
contents: write
15+
packages: write
16+
pull-requests: write
17+
1318
concurrency:
1419
group: ${{ github.workflow }}-${{ github.ref }}
1520
cancel-in-progress: true

.github/workflows/update_website_content.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
update_content:
1518
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)