mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 02:18:40 +08:00
[Ubuntu] Pin SHA256 for PhantomJS and libssl1.1 (#8799)
This commit is contained in:
@@ -9,9 +9,11 @@ source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
# Install PhantomJS
|
||||
apt-get install -y chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
|
||||
PHANTOM_JS=phantomjs-2.1.1-linux-x86_64
|
||||
download_with_retries https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 "/tmp"
|
||||
tar xjf /tmp/$PHANTOM_JS.tar.bz2 -C /usr/local/share
|
||||
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
|
||||
phantom_js=phantomjs-2.1.1-linux-x86_64
|
||||
download_with_retries https://bitbucket.org/ariya/phantomjs/downloads/$phantom_js.tar.bz2 "/tmp"
|
||||
phantom_js_hash="86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f"
|
||||
use_checksum_comparison "/tmp/${phantom_js}.tar.bz2" "${phantom_js_hash}"
|
||||
tar xjf /tmp/$phantom_js.tar.bz2 -C /usr/local/share
|
||||
ln -sf /usr/local/share/$phantom_js/bin/phantomjs /usr/local/bin
|
||||
|
||||
invoke_tests "Tools" "Phantomjs"
|
||||
|
||||
@@ -11,6 +11,8 @@ source $HELPER_SCRIPTS/os.sh
|
||||
# Install libssl1.1 dependency
|
||||
if isUbuntu22; then
|
||||
download_with_retries "http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb" "/tmp"
|
||||
libssl_hash="0b3251aee55db6e20d02f4b9a2b703c9874a85ab6a20b12f4870f52f91633d37"
|
||||
use_checksum_comparison "/tmp/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb" "${libssl_hash}"
|
||||
dpkg -i /tmp/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user