Skip to content

Commit 9c61c23

Browse files
committed
Fix CodeQL warnings about lack of workflow permissions
1 parent c7831c6 commit 9c61c23

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.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)