Skip to content

Commit 02320b5

Browse files
authored
ci: scope down GitHub Token permissions (#212)
* ci: scope down permissions for colab.yml * ci: scope down permissions for canary_d2l.yml * ci: scope down permissions for pr_notebook.yml
1 parent 4c27b7e commit 02320b5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/canary_d2l.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: '0 9 * * *'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
canary-test:
1114
runs-on: ${{ matrix.os }}

.github/workflows/colab.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: '0 9 * * 1'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
sync:
1114
runs-on: ubuntu-latest

.github/workflows/pr_notebook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- "**.css"
1111
workflow_dispatch:
1212

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

0 commit comments

Comments
 (0)