Skip to content

Commit

Permalink
Minimize permissions on CI workflows (#110)
Browse files Browse the repository at this point in the history
They only need read permissions.
  • Loading branch information
rabbbit authored Jul 9, 2023
1 parent 2fd8c93 commit 021eef1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
test:
name: Benchmark
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: cover

on: [push]

permissions:
contents: read

jobs:
test:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: ['*']

permissions:
contents: read

jobs:
test:

Expand Down

0 comments on commit 021eef1

Please sign in to comment.