Clean Campaign audit and test resources

This commit is contained in:
2026-07-21 03:17:11 +02:00
parent c54fec4cc3
commit 35b3cc151d
4 changed files with 11 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class FieldType(StrEnum):
INTEGER = "integer"
DOUBLE = "double"
DATE = "date"
PASSWORD = "password"
PASSWORD = "password" # noqa: S105 # nosec B105 - field type vocabulary.
class RecipientType(StrEnum):

View File

@@ -81,7 +81,7 @@ def _load_delivery_info(version: CampaignVersion | None, jobs: list[CampaignJob]
"execution_snapshot_hash": None,
"execution_snapshot_at": None,
"snapshot_version": None,
"build_token": None,
"build_token": None, # nosec B105 - absent report value, not a credential.
"built_at": None,
"job_manifest_sha256": None,
"job_count": 0,

View File

@@ -41,7 +41,7 @@ def _normalized_members(files: Iterable[Path | ArchiveMember]) -> list[ArchiveMe
def create_zip_archive(
output_path: Path,
files: Iterable[Path | ArchiveMember],
password: str = "",
password: str = "", # nosec B107 - empty means an unencrypted archive.
method: str = ZIP_METHOD_AES,
) -> Path:
"""Create a ZIP archive, optionally using AES or legacy ZipCrypto encryption."""