Skip to content

Fix CodeQL warnings about lack of workflow permissions #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- name: Run linters
run: |
pre-commit run --hook-stage=manual --all-files
permissions:
contents: read
docs:
name: Docs Checks
runs-on: ubuntu-latest
Expand All @@ -46,3 +48,5 @@ jobs:
run: |
cd docs
make html
permissions:
contents: read
2 changes: 2 additions & 0 deletions .github/workflows/test-python-atlas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ jobs:
run: bash .github/workflows/start_local_atlas.sh mongodb/mongodb-atlas-local:7
- name: Run tests
run: python3 django_repo/tests/runtests.py --settings mongodb_settings -v 2
permissions:
contents: read
2 changes: 2 additions & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ jobs:
mongodb-version: 6.0
- name: Run tests
run: python3 django_repo/tests/runtests_.py
permissions:
contents: read