Skip to content

Commit

Permalink
Specify read-all permissions in workflows. (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzweilin authored Mar 6, 2024
1 parent 182b633 commit 7435695
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/code-quality-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches: [main]

permissions: read-all

jobs:
code-quality:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/code-quality-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
pull_request:
branches: [main, "release/*"]

permissions: read-all

jobs:
code-quality:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
branches: [main, "release/*"]

permissions: read-all

jobs:
run_tests:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 7435695

Please sign in to comment.