mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Engineering - use different token for topic branches (#254714)
Engineering - use different token from topic branches
This commit is contained in:
8
.github/workflows/pr-linux-test.yml
vendored
8
.github/workflows/pr-linux-test.yml
vendored
@@ -79,7 +79,7 @@ jobs:
|
||||
echo "Npm install failed $i, trying again..."
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ github.event.pull_request.head.repo.full_name == github.repository && secrets.VSCODE_OSS || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
@@ -101,7 +101,7 @@ jobs:
|
||||
VSCODE_ARCH: ${{ env.VSCODE_ARCH }}
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ github.event.pull_request.head.repo.full_name == github.repository && secrets.VSCODE_OSS || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create node_modules archive
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
@@ -128,7 +128,7 @@ jobs:
|
||||
if: steps.cache-builtin-extensions.outputs.cache-hit != 'true'
|
||||
run: node build/lib/builtInExtensions.js
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ github.event.pull_request.head.repo.full_name == github.repository && secrets.VSCODE_OSS || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Transpile client and extensions
|
||||
run: npm run gulp transpile-client-esbuild transpile-extensions
|
||||
@@ -152,7 +152,7 @@ jobs:
|
||||
sleep 5 # optional: add a small delay between retries
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ github.event.pull_request.head.repo.full_name == github.repository && secrets.VSCODE_OSS || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 🧪 Run unit tests (Electron)
|
||||
if: ${{ inputs.electron_tests }}
|
||||
|
||||
Reference in New Issue
Block a user