xref: /aosp_15_r20/external/crosvm/infra/recipe_modules/crosvm/resources/codecov_wrapper.sh (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
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# Calls the provided command with CODECOV_TOKEN set. The token is obtained via the gcloud Secret
6# Manager.
7# See: https://console.cloud.google.com/security/secret-manager
8#
9# This script will only work if you have access to the above service via gcloud.
10set -e
11CODECOV_TOKEN=$(gcloud --project=crosvm-infra secrets versions access latest --secret="codecov-google-crosvm") $@
12