Skip to content

Commit ba5f9d6

Browse files
authored
Merge pull request nabla-c0d3#643 from nabla-c0d3/dev-6.0.0
Dev 6.0.0
2 parents ef91317 + 0e381d0 commit ba5f9d6

File tree

75 files changed

+19756
-19004
lines changed

Some content is hidden

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

75 files changed

+19756
-19004
lines changed

.github/workflows/build_windows_exe.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: windows-2022
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"
2020

.github/workflows/release_to_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- name: Docker Meta
2020
id: docker_meta

.github/workflows/run_tests.yml

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

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

@@ -34,7 +34,7 @@ jobs:
3434

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

4040
- name: Run tests

.github/workflows/run_tests_with_pydantic_1_10.yml renamed to .github/workflows/run_tests_with_lowest_pydantic_version.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# TODO(#617): Delete this file
2-
name: Run tests with pydantic 1.10
1+
name: Run tests with lowest supported version of pydantic
32

43
on:
54
push:
@@ -12,19 +11,19 @@ jobs:
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1615
- name: Set up Python
17-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1817
with:
19-
python-version: 3.7
18+
python-version: 3.8
2019

2120
- name: Install sslyze dependencies
2221
run: |
2322
python -m pip install --upgrade pip setuptools
2423
python -m pip install -e .
2524
26-
- name: Install pydantic 1.10
27-
run: python -m pip install "pydantic<2"
25+
- name: Install pydantic 2.2
26+
run: python -m pip install "pydantic==2.2"
2827

2928
- name: Install dev dependencies
3029
run: python -m pip install -r requirements-dev.txt

.github/workflows/scan_apache2_server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: 3.8
1919

.github/workflows/scan_iis_server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: windows-2019
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: 3.8
1919

.github/workflows/scan_nginx_server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: 3.8
1919

.github/workflows/test_module_setup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: 3.8
2020

MANIFEST.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ $ invoke test
102102
License
103103
-------
104104

105-
Copyright (c) 2023 Alban Diquet
105+
Copyright (c) 2024 Alban Diquet
106106

107107
SSLyze is made available under the terms of the GNU Affero General Public License (AGPL). See LICENSE.txt for details and exceptions.
108108

api_sample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ def example_json_result_output(
118118
date_scans_completed: datetime,
119119
) -> None:
120120
json_output = SslyzeOutputAsJson(
121-
server_scan_results=[ServerScanResultAsJson.from_orm(result) for result in all_server_scan_results],
121+
server_scan_results=[ServerScanResultAsJson.model_validate(result) for result in all_server_scan_results],
122122
invalid_server_strings=[], # Not needed here - specific to the CLI interface
123123
date_scans_started=date_scans_started,
124124
date_scans_completed=date_scans_completed,
125125
)
126-
json_output_as_str = json_output.json() # TODO(#617): Switch to model_dump_json()
126+
json_output_as_str = json_output.model_dump_json()
127127
json_file_out.write_text(json_output_as_str)
128128

129129

@@ -132,7 +132,7 @@ def example_json_result_parsing(results_as_json_file: Path) -> None:
132132
results_as_json = results_as_json_file.read_text()
133133

134134
# These results can be parsed
135-
parsed_results = SslyzeOutputAsJson.parse_raw(results_as_json)
135+
parsed_results = SslyzeOutputAsJson.model_validate_json(results_as_json)
136136

137137
# Making it easy to do post-processing and inspection of the results
138138
print("The following servers were scanned:")

0 commit comments

Comments
 (0)