Skip to content

Commit

Permalink
Minimize permissions to CI workflows (#133)
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.

Fixes #132.
  • Loading branch information
sywhang committed Mar 20, 2023
1 parent 1505d28 commit 544d6aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/fossa.yaml
@@ -1,6 +1,9 @@
name: FOSSA Analysis
on: push

permissions:
contents: read

jobs:

build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches: ['*']

permissions:
contents: read

jobs:

build:
Expand Down

0 comments on commit 544d6aa

Please sign in to comment.