Skip to content

Commit 6274fae

Browse files
committed
Fix CodeQL warnings about lack of workflow permissions
1 parent 57a194f commit 6274fae

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/linters.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
- name: Run linters
2727
run: |
2828
pre-commit run --hook-stage=manual --all-files
29+
permissions:
30+
contents: read
2931
docs:
3032
name: Docs Checks
3133
runs-on: ubuntu-latest
@@ -46,3 +48,5 @@ jobs:
4648
run: |
4749
cd docs
4850
make html
51+
permissions:
52+
contents: read

.github/workflows/test-python-atlas.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ jobs:
5454
run: bash .github/workflows/start_local_atlas.sh mongodb/mongodb-atlas-local:7
5555
- name: Run tests
5656
run: python3 django_repo/tests/runtests.py --settings mongodb_settings -v 2
57+
permissions:
58+
contents: read

.github/workflows/test-python.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ jobs:
5555
mongodb-version: 6.0
5656
- name: Run tests
5757
run: python3 django_repo/tests/runtests_.py
58+
permissions:
59+
contents: read

0 commit comments

Comments
 (0)