Skip to content

Commit

Permalink
Restrict permissions to GitHub actions (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz authored Oct 29, 2024
1 parent c3b722e commit ff4a20a
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 ff4a20a

Please sign in to comment.