Skip to content

Commit ff4a20a

Browse files
authored
Restrict permissions to GitHub actions (#509)
1 parent c3b722e commit ff4a20a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/lint.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Lint
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
jobs:

.github/workflows/tests.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
jobs:
@@ -60,6 +63,10 @@ jobs:
6063
coverage:
6164
runs-on: ubuntu-24.04
6265

66+
permissions:
67+
contents: read
68+
checks: write
69+
6370
steps:
6471
- uses: actions/checkout@v4
6572
- name: Set up Python 3.12

0 commit comments

Comments
 (0)