Skip to content

Commit 216ae90

Browse files
authored
Merge pull request #687 from nabla-c0d3/dev
Release v6.1.0
2 parents 761892b + bfaeaf0 commit 216ae90

File tree

77 files changed

+25424
-25438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+25424
-25438
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
**/__pycache__
33
/tests
44
/docs
5-
/.github
5+
/.github
6+
/.git

.github/workflows/build_windows_exe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
- name: Build Windows executable
3131
run: python setup.py build_exe
3232

33-
- uses: actions/upload-artifact@v2
33+
- uses: actions/upload-artifact@v4
3434
with:
3535
path: ./build/*

.github/workflows/release_to_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
context: ./
4141
file: ./Dockerfile
42-
platforms: linux/amd64
42+
platforms: linux/amd64, linux/arm64
4343
push: true
4444
tags: ${{ steps.docker_meta.outputs.tags }}
4545
labels: ${{ steps.docker_meta.outputs.labels }}

.github/workflows/run_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
16+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
1717

1818
steps:
1919
- uses: actions/checkout@v4
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Run linters
3636
# Only do linting once
37-
if: matrix.python-version == 3.8
37+
if: matrix.python-version == 3.9
3838
run: python -m invoke lint
3939

4040
- name: Run tests

.github/workflows/run_tests_with_lowest_pydantic_version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.8
18+
python-version: 3.9
1919

2020
- name: Install sslyze dependencies
2121
run: |
2222
python -m pip install --upgrade pip setuptools
2323
python -m pip install -e .
2424
25-
- name: Install pydantic 2.2
26-
run: python -m pip install "pydantic==2.2"
25+
- name: Install pydantic 2.3
26+
run: python -m pip install "pydantic==2.3"
2727

2828
- name: Install dev dependencies
2929
run: python -m pip install -r requirements-dev.txt

.github/workflows/scan_apache2_server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.8
18+
python-version: 3.9
1919

2020
- name: Install Apache2
2121
run: |

.github/workflows/scan_iis_server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.8
18+
python-version: 3.9
1919

2020
- name: Install IIS
2121
run: |

.github/workflows/scan_nginx_server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.8
18+
python-version: 3.9
1919

2020
- name: Install Nginx
2121
run: |

.github/workflows/test_module_setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v5
1818
with:
19-
python-version: 3.8
19+
python-version: 3.9
2020

2121
- name: Install pip
2222
run: |

Dockerfile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
FROM python:3.9-slim
1+
# set python version
2+
ARG PYTHON_VERSION="3.12"
3+
4+
FROM docker.io/python:${PYTHON_VERSION}-slim AS build
25
COPY . /sslyze/
3-
# install latest updates as root
4-
RUN apt-get update \
5-
&& apt-get install -y sudo
6+
WORKDIR /sslyze
7+
# use a venv
8+
RUN python -m venv /opt/venv
9+
ENV PATH="/opt/venv/bin:$PATH"
610
# install sslyze based on sourcecode
7-
RUN python -m pip install --upgrade pip setuptools wheel
8-
RUN python /sslyze/setup.py install
11+
RUN pip install --upgrade pip setuptools wheel
12+
RUN pip install .
13+
14+
FROM docker.io/python:${PYTHON_VERSION}-slim AS run
915
# set user to a non-root user sslyze
1016
RUN adduser --no-create-home --disabled-password --gecos "" --uid 1001 sslyze
1117
USER sslyze
12-
# restrict execution to sslyze
1318
WORKDIR /sslyze
14-
ENTRYPOINT ["python", "-m", "sslyze"]
15-
CMD ["-h"]
19+
# copy sslyze from build stage
20+
COPY --from=build /opt/venv /opt/venv
21+
ENV PATH="/opt/venv/bin:$PATH"
22+
ENTRYPOINT ["sslyze"]
23+
CMD ["-h"]

0 commit comments

Comments
 (0)