From d24a14f34de8602020b0844cec1eea643f1a5682 Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Fri, 10 May 2024 15:50:45 +0100 Subject: [PATCH] chore: Use SRC_ACCESS_TOKEN for uploading indexes (#62593) --- .github/workflows/scip-go.yml | 7 +++++++ .github/workflows/scip-typescript.yml | 11 +++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scip-go.yml b/.github/workflows/scip-go.yml index 8ec7ec78af2..5654627705e 100644 --- a/.github/workflows/scip-go.yml +++ b/.github/workflows/scip-go.yml @@ -48,18 +48,25 @@ jobs: run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/sourcegraph/sourcegraph env: SRC_ENDPOINT: https://sourcegraph.com/ + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOTCOM }} + - name: Upload scip-go dump to S2 working-directory: ${{ matrix.root }} run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/sourcegraph/sourcegraph env: SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/ + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_S2 }} + - name: Upload scip-go dump to Dogfood working-directory: ${{ matrix.root }} run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/sourcegraph/sourcegraph env: SRC_ENDPOINT: https://k8s.sgdev.org/ + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOGFOOD }} + - name: Upload scip-go dump to Demo working-directory: ${{ matrix.root }} run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/sourcegraph/sourcegraph env: SRC_ENDPOINT: https://demo.sourcegraph.com/ + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DEMO }} diff --git a/.github/workflows/scip-typescript.yml b/.github/workflows/scip-typescript.yml index a828cac2308..8fd62c0381a 100644 --- a/.github/workflows/scip-typescript.yml +++ b/.github/workflows/scip-typescript.yml @@ -43,15 +43,22 @@ jobs: run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress env: SRC_ENDPOINT: https://sourcegraph.com/ + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOTCOM }} + - name: Upload SCIP to S2 run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress env: SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/ - - name: Upload lsif to Dogfood + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_S2 }} + + - name: Upload SCIP to Dogfood run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true env: SRC_ENDPOINT: https://k8s.sgdev.org/ - - name: Upload lsif to Demo + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOGFOOD }} + + - name: Upload SCIP to Demo run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true env: SRC_ENDPOINT: https://demo.sourcegraph.com/ + SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DEMO }}