Skip to content

Commit

Permalink
Minimize permissions to CI workflows (#1055)
Browse files Browse the repository at this point in the history
Set only read permission on CI workflows since they don't need write
access.
  • Loading branch information
sywhang committed Mar 20, 2023
1 parent 24e8b1a commit 5f49c6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ jobs:
with:
api-key: ${{ secrets.FOSSA_API_KEY }}

permissions:
contents: read
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches: ['*']

permissions:
contents: read

jobs:

build:
Expand Down

0 comments on commit 5f49c6d

Please sign in to comment.