mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Add hash check for Kotlin, Minikube, AWS SAM CLI (#8596)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
################################################################################
|
||||
## File: aws.sh
|
||||
## Desc: Installs the AWS CLI, Session Manager plugin for the AWS CLI, and AWS SAM CLI
|
||||
## Supply chain security: AWS SAM CLI - checksum validation
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
@@ -15,11 +16,16 @@ unzip -qq /tmp/awscliv2.zip -d /tmp
|
||||
download_with_retries "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" "/tmp" "session-manager-plugin.deb"
|
||||
apt install /tmp/session-manager-plugin.deb
|
||||
|
||||
# Download & install the latest aws sam cli release
|
||||
zipName="aws-sam-cli-linux-x86_64.zip"
|
||||
zipUrl="https://github.com/aws/aws-sam-cli/releases/latest/download/${zipName}"
|
||||
download_with_retries $zipUrl "/tmp" $zipName
|
||||
unzip /tmp/${zipName} -d /tmp
|
||||
# Download the latest aws sam cli release
|
||||
aws_sam_cli_zip_name="aws-sam-cli-linux-x86_64.zip"
|
||||
download_with_retries "https://github.com/aws/aws-sam-cli/releases/latest/download/${aws_sam_cli_zip_name}" "/tmp" $aws_sam_cli_zip_name
|
||||
|
||||
# Supply chain security - AWS SAM CLI
|
||||
aws_sam_cli_hash=$(get_github_package_hash "aws" "aws-sam-cli" "${aws_sam_cli_zip_name}.. ")
|
||||
use_checksum_comparison "/tmp/${aws_sam_cli_zip_name}" "$aws_sam_cli_hash"
|
||||
|
||||
# Install the latest aws sam cli release
|
||||
unzip /tmp/${aws_sam_cli_zip_name} -d /tmp
|
||||
/tmp/install
|
||||
|
||||
invoke_tests "CLI.Tools" "AWS"
|
||||
|
||||
Reference in New Issue
Block a user