Skip to content

Commit

Permalink
don't pass GITHUB_TOKEN to yarn/npm
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Nov 26, 2021
1 parent 377e1d7 commit 6f9a7cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
},
"equinusocio.vsc-material-theme-icons": {
"repository": "https://github.com/material-theme/vsc-material-theme-icons",
"prepublish": "sed -i '[email protected]:material-theme/vsc-material-theme-icons-src.git+https://github.com/material-theme/vsc-material-theme-icons-src.git+g' build/get-remote-icons.ts && yarn build"
"prepublish": "yarn build"
},
"erlang-ls.erlang-ls": {
"repository": "https://github.com/erlang-ls/vscode",
Expand Down
8 changes: 7 additions & 1 deletion lib/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ module.exports = async (command, options) => {
console.log(`Running: ${command}`);
}
return new Promise((resolve, reject) => {
const child = cp.exec(command, { cwd: options?.cwd }, (error, stdout, stderr) => {
const child = cp.exec(command, {
cwd: options?.cwd, env: {
...process.env,
// remove on purporse to work around issues in vscode package
GITHUB_TOKEN: undefined
}
}, (error, stdout, stderr) => {
if (error) {
return reject(error);
}
Expand Down

0 comments on commit 6f9a7cd

Please sign in to comment.