-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pre-commit.ci] pre-commit autoupdate #79
base: main
Are you sure you want to change the base?
Conversation
8318c45
to
760ed89
Compare
742d820
to
c950140
Compare
c950140
to
f37e5a3
Compare
f37e5a3
to
51eac6a
Compare
51eac6a
to
7f58745
Compare
b1d08d6
to
3651e61
Compare
3651e61
to
8aa5d8d
Compare
8aa5d8d
to
90f77c5
Compare
2067422
to
22ec0ae
Compare
22ec0ae
to
bddf15e
Compare
c259b7a
to
afffb72
Compare
6a4e501
to
50e94b6
Compare
50e94b6
to
5cd9dcb
Compare
5cd9dcb
to
535863a
Compare
535863a
to
786fc60
Compare
786fc60
to
6534ece
Compare
7ba3e70
to
df020cf
Compare
df020cf
to
7c80718
Compare
79e4c9a
to
7dc5a30
Compare
5bfa01e
to
afe4b84
Compare
fa834c5
to
d63553b
Compare
244503f
to
8d4e695
Compare
3443a09
to
a0b1fa9
Compare
print( | ||
f"{start_string} 'Daniel' comment: {c_comment_daniel}, {c_comment_daniel / c_surname:.2%}" | ||
) | ||
print(f"{start_string} birth dates: {c_date_of_birth}, {c_date_of_birth / c_surname:.2%}") |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (private)
This expression logs
sensitive data (private)
This expression logs
sensitive data (private)
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 11 days ago
To fix the problem, we should avoid logging sensitive information directly. Instead, we can log only non-sensitive statistical summaries or anonymize the data before logging. In this case, we can remove the detailed logging of specific counts and percentages related to sensitive data and replace it with a more general summary.
- Remove or anonymize the logging of sensitive data such as birth dates, death dates, and other personal information.
- Update the logging statements to provide a general summary without exposing specific sensitive details.
- Ensure that the changes do not alter the existing functionality of the code.
-
Copy modified lines R74-R87
@@ -73,18 +73,16 @@ | ||
print(f"For the entries of {type_string}") | ||
print(f"{start_string} ISNI id: {c_isni}, {c_isni / c_surname:.2%}") | ||
print( | ||
f"{start_string} 'Daniel' comment: {c_comment_daniel}, {c_comment_daniel / c_surname:.2%}" | ||
) | ||
print(f"{start_string} birth dates: {c_date_of_birth}, {c_date_of_birth / c_surname:.2%}") | ||
print(f"{start_string} death dates: {c_date_of_death}, {c_date_of_death / c_surname:.2%}") | ||
print(f"{start_string} functions: {c_functions}, {c_functions / c_surname:.2%}") | ||
print(f"{start_string} images: {c_images}, {c_images / c_surname:.2%}") | ||
print(f"{start_string} name: {c_name}, {c_name / c_surname:.2%}") | ||
print(f"{start_string} place of birth: {c_place_of_birth}, {c_place_of_birth / c_surname:.2%}") | ||
print(f"{start_string} place of death: {c_place_of_death}, {c_place_of_death / c_surname:.2%}") | ||
print(f"{start_string} sources: {c_sources}, {c_sources / c_surname:.2%}") | ||
print(f"{start_string} sources other: {c_sources_other}, {c_sources_other / c_surname:.2%}") | ||
print(f"{start_string} surname: {c_surname}, {c_surname / c_surname:.2%}") | ||
print(f"{start_string} titles: {c_titles}, {c_titles / c_surname:.2%}") | ||
print(f"{start_string} wikidata id: {c_wikidata}, {c_wikidata / c_surname:.2%}") | ||
print(f"{start_string} ISNI id: {c_isni}") | ||
print(f"{start_string} 'Daniel' comment: {c_comment_daniel}") | ||
print(f"{start_string} birth dates: {c_date_of_birth}") | ||
print(f"{start_string} death dates: {c_date_of_death}") | ||
print(f"{start_string} functions: {c_functions}") | ||
print(f"{start_string} images: {c_images}") | ||
print(f"{start_string} name: {c_name}") | ||
print(f"{start_string} place of birth: {c_place_of_birth}") | ||
print(f"{start_string} place of death: {c_place_of_death}") | ||
print(f"{start_string} sources: {c_sources}") | ||
print(f"{start_string} sources other: {c_sources_other}") | ||
print(f"{start_string} surname: {c_surname}") | ||
print(f"{start_string} titles: {c_titles}") | ||
print(f"{start_string} wikidata id: {c_wikidata}") | ||
|
updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.5.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.9.2](astral-sh/ruff-pre-commit@v0.5.2...v0.9.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.14.1](pre-commit/mirrors-mypy@v1.8.0...v1.14.1)
7f63a75
to
ee8b335
Compare
for more information, see https://pre-commit.ci
updates: