Skip to content

Commit

Permalink
Reduce GHA token permissions. (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmoose authored May 12, 2022
1 parent a5f7838 commit 4f04a69
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.yml @shadowmoose
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
pull_request:
workflow_dispatch:


permissions:
contents: read


jobs:
lint:
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-macOS-sur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
paths:
- '**.py'
- '**.yml'
pull_request:
schedule:
- cron: '0 8 * * *'

permissions:
contents: read

jobs:
run-tests:
name: Python ${{ matrix.python-version }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
paths:
- '**.py'
- '**.yml'
pull_request:
schedule:
- cron: '0 8 * * *'

permissions:
contents: read

jobs:
run-tests:
name: Python ${{ matrix.python-version }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ on:
paths:
- '**.py'
- '**.yml'
pull_request:
schedule:
- cron: '0 8 * * *'
- cron: '0 8 * * *'

permissions:
contents: read

jobs:
run-tests:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ on:
paths:
- '**.py'
- '**.yml'
pull_request:
schedule:
- cron: '0 8 * * *'
- cron: '0 8 * * *'

permissions:
contents: read

jobs:
run-tests:
Expand Down

0 comments on commit 4f04a69

Please sign in to comment.