mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
The previous token expired and a new one was created and added to GCP secrets manager. This CL updates the script run by CI to always use the latest secret instead of a fixed version. BUG=None TEST=sh push_to_github.sh Change-Id: I7eff1a8b385b5cd48206ef54aad65151dfbbc961 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3751430 Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
11 lines
586 B
Bash
11 lines
586 B
Bash
# Copyright 2022 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Pushes the current repo to github using the secret provided by Secret Manager.
|
|
# See: https://console.cloud.google.com/security/secret-manager
|
|
#
|
|
# This script will only work if you have access to the above service via gcloud.
|
|
set -e
|
|
TOKEN=$(gcloud --project=crosvm-infra secrets versions access latest --secret="github-crosvm-bot")
|
|
git push --force "https://crosvm-bot:${TOKEN}@github.com/google/crosvm.git" HEAD:main
|