Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Amazon Web Services',
authorAddress: '[email protected]',
cdkVersion: '2.54.0',
cdkVersion: '2.109.0',
defaultReleaseBranch: 'main',
majorVersion: 2,
npmDistTag: 'latest',
Expand Down
8 changes: 6 additions & 2 deletions assets/lambda/code/scan/lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def lambda_handler(event, context):
"status": ScanStatus.SKIP,
"message": "S3 Event trigger was for a non-file object",
}
elif (status := get_status(input_bucket, input_key, version_id)) == ScanStatus.SKIP:
elif (
status := get_status(input_bucket, input_key, version_id)
) == ScanStatus.SKIP:
summary = {
"source": "serverless-clamscan",
"input_bucket": input_bucket,
Expand Down Expand Up @@ -364,7 +366,9 @@ def freshclam_update(input_bucket, input_key, download_path, definitions_path):
stdout=subprocess.PIPE,
)
if update_summary.returncode == 0:
logger.info(f"Database update output: {update_summary.stdout.decode('utf-8')}")
logger.info(
f"Database update output: {update_summary.stdout.decode('utf-8')}"
)
else:
raise ClamAVException(
f"FreshClam exited with unexpected code: {update_summary.returncode}"
Expand Down
Loading