forked from actions/runner-images
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ubuntu] Add more checksum validations (actions#8660)
- Loading branch information
1 parent
3146c70
commit 53416cd
Showing
9 changed files
with
86 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
#!/bin/bash -e | ||
################################################################################ | ||
## File: docker-compose.sh | ||
## Desc: Installs Docker Compose | ||
## Desc: Installs Docker Compose v1 | ||
## Supply chain security: Docker Compose v1 - checksum validation | ||
################################################################################ | ||
|
||
# Source the helpers for use with the script | ||
source $HELPER_SCRIPTS/install.sh | ||
|
||
# Install docker-compose v1 from releases | ||
URL="https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64" | ||
curl -fsSL $URL -o /usr/local/bin/docker-compose | ||
chmod +x /usr/local/bin/docker-compose | ||
curl -fsSL "${URL}" -o /tmp/docker-compose-v1 | ||
|
||
# Supply chain security - Docker Compose v1 | ||
external_hash=$(get_hash_from_remote_file "${URL}.sha256" "compose-Linux-x86_64") | ||
use_checksum_comparison "/tmp/docker-compose-v1" "${external_hash}" | ||
install /tmp/docker-compose-v1 /usr/local/bin/docker-compose | ||
|
||
invoke_tests "Tools" "Docker-compose v1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters