-
Notifications
You must be signed in to change notification settings - Fork 27
Testing security #135
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
Open
nlaurance
wants to merge
8
commits into
PythonIreland:master
Choose a base branch
from
nlaurance:testing-security
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Testing security #135
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
676c37b
updated dependencies
abc531e
user nobody, Subresource Integrity
e5ffc18
https references even in tests
debf52b
speakers' bio unsafe
eaa4d48
fix: Dockerfile to reduce vulnerabilities
snyk-bot 659b4fa
Merge pull request #1 from nlaurance/snyk-fix-936d79ec521b676cc8a5ad8…
nlaurance b167fbf
remove unused imports
24d9ea8
fixing some security issues
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # syntax = docker/dockerfile:1.4 | ||
| FROM python:3.10 AS compile-stage | ||
| FROM python:3.13.0a4-slim AS compile-stage | ||
| RUN --mount=type=cache,target=/var/cache/apt \ | ||
| apt update && \ | ||
| apt install -y --no-install-recommends \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should to add libraries for the compilation of Pillow 9.5 for Python 3.12 RUN --mount=type=cache,target=/var/cache/apt \
apt update && \
apt install -y --no-install-recommends \
build-essential gcc neovim fish less iputils-ping postgresql-client \
+ zlib1g-dev libjpeg-dev libraqm-dev libimagequant-dev libtiff-dev \
+ libfreetype6-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev \
+ libtiff5-dev \
+ libwebp-dev \
ackwithout these libs, I can't compile the Docker image |
||
|
|
@@ -19,3 +19,4 @@ RUN --mount=type=cache,target=/root/.cache \ | |
|
|
||
| FROM compile-stage AS tests-stage | ||
|
|
||
| USER nobody | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,12 @@ | ||
| # dev.in | ||
| -c main.txt | ||
| bandit | ||
| black | ||
| coverage | ||
| django-debug-toolbar | ||
| fakeredis | ||
| flake8 | ||
| isort | ||
| model-mommy | ||
| pipdeptree | ||
| django-debug-toolbar | ||
| pip-tools | ||
| pipdeptree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,62 +1,116 @@ | ||
| asgiref==3.6.0 | ||
| # | ||
| # This file is autogenerated by pip-compile with Python 3.9 | ||
| # by the following command: | ||
| # | ||
| # pip-compile dev.in | ||
| # | ||
| asgiref==3.8.1 | ||
| # via | ||
| # -c requirements/main.txt | ||
| # -c main.txt | ||
| # django | ||
| async-timeout==4.0.2 | ||
| async-timeout==4.0.3 | ||
| # via | ||
| # -c requirements/main.txt | ||
| # -c main.txt | ||
| # redis | ||
| black==23.3.0 | ||
| # via -r requirements/dev.in | ||
| click==8.1.3 | ||
| # via black | ||
| coverage==7.2.2 | ||
| # via -r requirements/dev.in | ||
| django==3.2.18 | ||
| bandit==1.7.8 | ||
| # via -r dev.in | ||
| black==24.3.0 | ||
| # via -r dev.in | ||
| build==1.1.1 | ||
| # via pip-tools | ||
| click==8.1.7 | ||
| # via | ||
| # black | ||
| # pip-tools | ||
| coverage==7.4.4 | ||
| # via -r dev.in | ||
| django==3.2.25 | ||
| # via | ||
| # -c requirements/main.txt | ||
| # -c main.txt | ||
| # django-debug-toolbar | ||
| # model-mommy | ||
| django-debug-toolbar==3.8.1 | ||
| # via -r requirements/dev.in | ||
| fakeredis==2.10.2 | ||
| # via -r requirements/dev.in | ||
| flake8==6.0.0 | ||
| # via -r requirements/dev.in | ||
| isort==5.12.0 | ||
| # via -r requirements/dev.in | ||
| django-debug-toolbar==4.3.0 | ||
| # via -r dev.in | ||
| fakeredis==2.21.3 | ||
| # via -r dev.in | ||
| flake8==7.0.0 | ||
| # via -r dev.in | ||
| importlib-metadata==7.1.0 | ||
| # via build | ||
| isort==5.13.2 | ||
| # via -r dev.in | ||
| markdown-it-py==3.0.0 | ||
| # via rich | ||
| mccabe==0.7.0 | ||
| # via flake8 | ||
| mdurl==0.1.2 | ||
| # via markdown-it-py | ||
| model-mommy==2.0.0 | ||
| # via -r requirements/dev.in | ||
| # via -r dev.in | ||
| mypy-extensions==1.0.0 | ||
| # via black | ||
| packaging==23.0 | ||
| # via black | ||
| pathspec==0.11.1 | ||
| packaging==24.0 | ||
| # via | ||
| # -c main.txt | ||
| # black | ||
| # build | ||
| pathspec==0.12.1 | ||
| # via black | ||
| pipdeptree==2.7.0 | ||
| # via -r requirements/dev.in | ||
| platformdirs==3.2.0 | ||
| pbr==6.0.0 | ||
| # via stevedore | ||
| pip-tools==7.4.1 | ||
| # via -r dev.in | ||
| pipdeptree==2.16.1 | ||
| # via -r dev.in | ||
| platformdirs==4.2.0 | ||
| # via black | ||
| pycodestyle==2.10.0 | ||
| pycodestyle==2.11.1 | ||
| # via flake8 | ||
| pyflakes==3.0.1 | ||
| pyflakes==3.2.0 | ||
| # via flake8 | ||
| pytz==2023.3 | ||
| pygments==2.17.2 | ||
| # via rich | ||
| pyproject-hooks==1.0.0 | ||
| # via | ||
| # -c requirements/main.txt | ||
| # build | ||
| # pip-tools | ||
| pytz==2024.1 | ||
| # via | ||
| # -c main.txt | ||
| # django | ||
| redis==4.5.4 | ||
| pyyaml==6.0.1 | ||
| # via bandit | ||
| redis==5.0.3 | ||
| # via | ||
| # -c requirements/main.txt | ||
| # -c main.txt | ||
| # fakeredis | ||
| rich==13.7.1 | ||
| # via bandit | ||
| sortedcontainers==2.4.0 | ||
| # via fakeredis | ||
| sqlparse==0.4.3 | ||
| sqlparse==0.4.4 | ||
| # via | ||
| # -c requirements/main.txt | ||
| # -c main.txt | ||
| # django | ||
| # django-debug-toolbar | ||
| stevedore==5.2.0 | ||
| # via bandit | ||
| tomli==2.0.1 | ||
| # via black | ||
| # via | ||
| # black | ||
| # build | ||
| # pip-tools | ||
| # pyproject-hooks | ||
| typing-extensions==4.10.0 | ||
| # via | ||
| # -c main.txt | ||
| # asgiref | ||
| # black | ||
| wheel==0.43.0 | ||
| # via pip-tools | ||
| zipp==3.18.1 | ||
| # via importlib-metadata | ||
|
|
||
| # The following packages are considered to be unsafe in a requirements file: | ||
| # pip | ||
| # setuptools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.