Switch to environment files. Apply GHSA-mfwh-5m23-j46w (CVE-2020-15228)

This commit is contained in:
Shivam Mathur
2020-10-02 04:26:51 +05:30
parent 2ad63ddbd3
commit 716331904e
6 changed files with 89 additions and 24 deletions

View File

@ -189,7 +189,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
}