mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-07 02:46:51 +00:00
12 lines
577 B
Bash
12 lines
577 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 1 --secret="github-crosvm-bot")
|
||
|
git push --force --all "https://crosvm-bot:${TOKEN}@github.com/google/crosvm.git"
|