From f881884a4e0c7c7ead6e7ed340f2ce723136836f Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Sat, 1 Apr 2023 00:23:47 +0100 Subject: [PATCH] internal/ci: remove hard-codings in base package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paul Jolly Change-Id: I6f75a5e265a76b4450c70b045753639d1b492fba Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552038 Unity-Result: CUEcueckoo TryBot-Result: CUEcueckoo Reviewed-by: Daniel Martí --- internal/ci/base/gerrithub.cue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/ci/base/gerrithub.cue b/internal/ci/base/gerrithub.cue index 51f8e1e5c5f..d1e6a138573 100644 --- a/internal/ci/base/gerrithub.cue +++ b/internal/ci/base/gerrithub.cue @@ -51,7 +51,7 @@ trybotDispatchWorkflow: bashWorkflow & { git remote add origin \(trybotRepositoryURL) git fetch origin "${{ github.event.client_payload.payload.branch }}" git push origin \(_#branchNameExpression) - echo ${{ secrets.CUECKOO_GITHUB_PAT }} | gh auth login --with-token + echo ${{ secrets.\(botGitHubUserTokenSecretsKey) }} | gh auth login --with-token gh pr --repo=\(trybotRepositoryURL) create --base="${{ github.event.client_payload.payload.branch }}" --fill """ }, @@ -167,7 +167,7 @@ evictCaches: bashWorkflow & { run: """ set -eux - echo ${{ secrets.CUECKOO_GITHUB_PAT }} | gh auth login --with-token + echo ${{ secrets.\(botGitHubUserTokenSecretsKey) }} | gh auth login --with-token gh extension install actions/gh-actions-cache for i in \(githubRepositoryURL) \(trybotRepositoryURL) do @@ -205,7 +205,7 @@ evictCaches: bashWorkflow & { } writeNetrcFile: json.#step & { - name: "Write netrc file for cueckoo Gerrithub" + name: "Write netrc file for \(botGerritHubUser) Gerrithub" run: """ cat < ~/.netrc machine \(gerritHubHostname)