Skip to content

Commit

Permalink
Restrict permissions to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz committed Oct 29, 2024
1 parent c3b722e commit 20ddea3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Lint

permissions:
contents: read

on: [push, pull_request]

jobs:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Tests

permissions:
contents: read

on: [push, pull_request]

jobs:
Expand Down Expand Up @@ -60,6 +63,10 @@ jobs:
coverage:
runs-on: ubuntu-24.04

permissions:
contents: read
checks: write

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
Expand Down

0 comments on commit 20ddea3

Please sign in to comment.