Skip to content

Commit

Permalink
Minimize permissions to CI workflows
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 751da59 commit cc6ea78
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
Original file line number Diff line number Diff line change
@@ -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
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 cc6ea78

Please sign in to comment.