Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/infra/recipes/push_to_github.resources/push_to_github.sh
5394 views
1
# Copyright 2022 The ChromiumOS Authors
2
# Use of this source code is governed by a BSD-style license that can be
3
# found in the LICENSE file.
4
5
# Pushes the current repo to github using the secret provided by Secret Manager.
6
# See: https://console.cloud.google.com/security/secret-manager
7
#
8
# This script will only work if you have access to the above service via gcloud.
9
set -e
10
TOKEN=$(gcloud --project=crosvm-infra secrets versions access latest --secret="github-crosvm-bot")
11
git push --force "https://crosvm-bot:${TOKEN}@github.com/google/crosvm.git" HEAD:main
12
13