2022-05-26 23:13:27 +00:00
|
|
|
# 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")
|
2022-06-01 19:10:38 +00:00
|
|
|
git push --force "https://crosvm-bot:${TOKEN}@github.com/google/crosvm.git" HEAD:main
|