Skip to content

Commit c211ef4

Browse files
authored
Set up permissions to github workflows (#218)
* feat: update lock.yml permissions Signed-off-by: Joyce <[email protected]> * feat: set up permissions to ci.yml Signed-off-by: Joyce <[email protected]> --------- Signed-off-by: Joyce <[email protected]>
1 parent 2087de5 commit c211ef4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [master]
66
pull_request: {}
7+
8+
permissions:
9+
contents: read
710

811
jobs:
912
mypy:

.github/workflows/lock.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ on:
44
schedule:
55
- cron: '0 0 * * *'
66

7-
permissions:
8-
issues: "write"
7+
permissions: {}
98

109
jobs:
1110
lock:
1211
if: github.repository_owner == 'certifi'
1312
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
1415
steps:
1516
- uses: dessant/lock-threads@v3
1617
with:

0 commit comments

Comments
 (0)