From 11e062bf2387bc8ccfb1532f3c6e9dd2eb26eded Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 5 Oct 2020 12:55:15 +0530 Subject: [PATCH] Switch to environment files. Apply GHSA-mfwh-5m23-j46w (CVE-2020-15228) --- src/scripts/darwin.sh | 2 +- src/scripts/linux.sh | 2 +- src/scripts/win32.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index e070da6b..2c9adc7c 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -124,7 +124,7 @@ configure_composer() { exit 1; fi composer -q global config process-timeout 0 - echo "::add-path::/Users/$USER/.composer/vendor/bin" + echo "/Users/$USER/.composer/vendor/bin" >> "$GITHUB_PATH" if [ -n "$COMPOSER_TOKEN" ]; then composer -q global config github-oauth.github.com "$COMPOSER_TOKEN" fi diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index b26e9336..fa2ff6d3 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -155,7 +155,7 @@ configure_composer() { exit 1; fi composer -q global config process-timeout 0 - echo "::add-path::/home/$USER/.composer/vendor/bin" + echo "/home/$USER/.composer/vendor/bin" >> "$GITHUB_PATH" if [ -n "$COMPOSER_TOKEN" ]; then composer -q global config github-oauth.github.com "$COMPOSER_TOKEN" fi diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index f8c6f9c4..54b1a99b 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -149,7 +149,7 @@ Function Edit-ComposerConfig() { exit 1; } composer -q global config process-timeout 0 - Write-Output "::add-path::$env:APPDATA\Composer\vendor\bin" + Write-Output "$env:APPDATA\Composer\vendor\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 if (Test-Path env:COMPOSER_TOKEN) { composer -q global config github-oauth.github.com $env:COMPOSER_TOKEN }