Skip to content

Commit cb20c3f

Browse files
committed
chore(ci): tighten workflow token permissions
1 parent 7f15580 commit cb20c3f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/check-tag.yml

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

8+
permissions: {}
9+
810
jobs:
911
check:
1012
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1115
steps:
1216
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1317
- name: Run checks

.github/workflows/check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
branches:
77
- main
88

9+
permissions: {}
10+
911
jobs:
1012
test:
1113
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1216
steps:
1317
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1418
# No caching as we're expected to run rarely

0 commit comments

Comments
 (0)