Skip to content

Commit

Permalink
Set up permissions to github workflows (#218)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
joycebrum authored Feb 24, 2023
1 parent 2087de5 commit c211ef4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [master]
pull_request: {}

permissions:
contents: read

jobs:
mypy:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
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:
Expand Down

0 comments on commit c211ef4

Please sign in to comment.