diff --git a/src/lambda_function.rb b/src/lambda_function.rb index 55aec2b..5dc41ee 100644 --- a/src/lambda_function.rb +++ b/src/lambda_function.rb @@ -175,7 +175,7 @@ def handle_s3_profile(event) exit 1 end - profile_download_path = '/tmp/inspec-profile.zip' + profile_download_path = "/tmp/inspec-profile#{key.end_with?('.zip') ? '.zip' : '.tar.gz'}" $logger.info("Downloading InSpec profile to #{profile_download_path}") s3_client = Aws::S3::Client.new s3_client.get_object({ bucket: bucket, key: key }, target: profile_download_path) diff --git a/version b/version index 51de330..ed0d9e9 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.13.0 \ No newline at end of file +0.13.1 \ No newline at end of file