File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
.devcontainer/local-features/setup-user Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,24 @@ chmod +x /etc/profile.d/00-restore-env.sh
2020
2121export DEBIAN_FRONTEND=noninteractive
2222
23+ # Temporary: Replace the current gradle plugins with patched versions
24+ GRADLE_PATH=$( cd /usr/local/sdkman/candidates/gradle/7* /lib/plugins/ && pwd)
25+
2326# Temporary: Due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31159
2427# Delete the current plugin
25- GRADLE_PATH=$( cd /usr/local/sdkman/candidates/gradle/7* /lib/plugins/ && pwd)
2628rm -f ${GRADLE_PATH} /aws-java-sdk-s3-*
2729
2830# Install "aws-java-sdk-s3" plugin with version >= 1.12.261
2931curl -sSL https://github.com/aws/aws-sdk-java/archive/refs/tags/1.12.363.tar.gz | tar -xzC /tmp 2>&1
3032jar cf ${GRADLE_PATH} /aws-java-sdk-s3-1.12.363.jar /tmp/aws-sdk-java-1.12.363/aws-java-sdk-s3
3133rm -rf /tmp/aws-sdk-java-1.12.363
3234
35+ # Temporary: Due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36033
36+ rm -f ${GRADLE_PATH} /jsoup-*
37+ curl -sSL https://github.com/jhy/jsoup/archive/refs/tags/jsoup-1.15.3.tar.gz | tar -xzC /tmp 2>&1
38+ jar cf ${GRADLE_PATH} /jsoup-1.15.3.jar /tmp/jsoup-jsoup-1.15.3
39+ rm -rf /tmp/jsoup-jsoup-1.15.3
40+
3341# Temporary: Upgrade NPM packages due to mentioned CVEs.
3442# decode-uri-component: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-38900
3543# ansi-regex: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3807
Original file line number Diff line number Diff line change @@ -173,8 +173,10 @@ check "java-version-on-path-is-12.0.2" java --version | grep 12.0.2
173173# Test patches
174174GRADLE_PATH=$( cd /usr/local/sdkman/candidates/gradle/7* /lib/plugins && pwd)
175175check " aws-java-sdk-s3-plugin" bash -c " ls ${GRADLE_PATH} | grep aws-java-sdk-s3-1.12.363.jar"
176+ check " jsoup-plugin" bash -c " ls ${GRADLE_PATH} | grep jsoup-1.15.3.jar"
176177
177178cd /usr/local/share/nvm/versions/node/v14* /lib/node_modules/npm
179+
178180decodeVersion=$( npm ls --depth 1 --json | jq -r ' .dependencies."decode-uri-component".version' )
179181check-version-ge " decode-uri-component" " ${decodeVersion} " " 0.2.1"
180182
You can’t perform that action at this time.
0 commit comments