Set up permissions to github workflows (#218)

* feat: update lock.yml permissions

Signed-off-by: Joyce <joycebrum@google.com>

* feat: set up permissions to ci.yml

Signed-off-by: Joyce <joycebrum@google.com>

---------

Signed-off-by: Joyce <joycebrum@google.com>
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 49b66ee..2610846 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,6 +4,9 @@
   push:
     branches: [master]
   pull_request: {}
+  
+permissions:
+  contents: read
 
 jobs:
   mypy:
diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml
index aa693c3..8438ac4 100644
--- a/.github/workflows/lock.yml
+++ b/.github/workflows/lock.yml
@@ -4,13 +4,14 @@
   schedule:
     - cron: '0 0 * * *'
 
-permissions:
-  issues: "write"
+permissions: {}
 
 jobs:
   lock:
     if: github.repository_owner == 'certifi'
     runs-on: ubuntu-latest
+    permissions:
+      issues: write
     steps:
       - uses: dessant/lock-threads@v3
         with: