Repository navigation
Give Cursor Cloud Agents keyless GCP, AWS and tailnet access #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # Files installed by .agents/sync-kit; it removes | ||
| # only these when the kit drops one. | ||
| bin/agent-access | ||
| bin/agent-aws-credentials | ||
| bin/agent-cloud-login | ||
| bin/agent-gcp-token | ||
| bin/agent-oidc-token | ||
| bin/agent-platform | ||
| bin/agent-tailscale-devices | ||
| bin/agent-tailscale-up | ||
| load-env.sh | ||
| README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Cloud agent access kit | ||
|
|
||
| Copied by `.agents/sync-kit` from the internal repository that maintains the | ||
| kit. Change the scripts there and sync them again rather than editing these | ||
| copies. | ||
|
|
||
| Cursor Cloud Agents and Devin VMs get short-lived credentials for GCP, AWS | ||
| and the company tailnet by exchanging an OIDC token that the platform issues | ||
| inside the VM. Nothing long-lived is stored in the repository, the image or | ||
| the snapshot. | ||
|
|
||
| - `bin/agent-access install` (Cursor install step) installs `gcloud`, `aws`, | ||
| `tailscale` and `jq` when missing and links the helpers into | ||
| `/usr/local/bin`. | ||
| - `bin/agent-access start` (Cursor start step) writes the `coding-agents` | ||
| gcloud configuration and AWS profile and keeps the VM on the tailnet. | ||
| - The resource names the helpers use come from the `AGENT_ENV_CONF` Cursor | ||
| team secret (see `load-env.sh`); without it, access stays off. The | ||
| `GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1` team secret lets gcloud and | ||
| the Google client libraries run the token helper. | ||
|
|
||
| Devin sets up the same access for every repository from the organization's | ||
| shared environment, so these copies are only used on Cursor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,149 @@ | ||
| #!/usr/bin/env bash | ||
| # Keyless GCP, AWS and tailnet access for a Cursor Cloud Agent VM of any | ||
| # repository, on Cursor's default image or a custom one. The repository that | ||
| # maintains the kit does the same through its own .cursor/ environment; other | ||
| # repositories get this kit through its .agents/sync-kit. | ||
| # | ||
| # agent-access install Build step, cached in the environment snapshot: | ||
| # installs curl, jq, gcloud, aws and tailscale when | ||
| # missing, links the helpers into /usr/local/bin and | ||
| # sets the shell environment gcloud and aws need. | ||
| # agent-access start Every boot: saves the resource names, writes the | ||
| # coding-agents gcloud configuration and AWS profile, | ||
| # and keeps the VM on the tailnet in the background. | ||
| # | ||
| # Never fails the environment: a step that does not work is reported and | ||
| # skipped, so the repository's own setup still runs. | ||
| set -uo pipefail | ||
|
|
||
| self="$(readlink -f "${BASH_SOURCE[0]}")" | ||
| here="$(dirname "$self")" | ||
| conf_dir="$HOME/.config/coding-agents" | ||
|
|
||
| log() { echo "agent-access: $*"; } | ||
|
|
||
| # Keep the resource names where helpers started without the Cursor secrets in | ||
| # their environment (sudo, detached watchers) still find them. Only the | ||
| # AGENT_ENV_CONF secret is saved; a committed agent-env.conf is read in place. | ||
| save_conf() { | ||
| [ -f "$here/../agent-env.conf" ] && return 0 | ||
| if [ -n "${AGENT_ENV_CONF:-}" ]; then | ||
| mkdir -p "$conf_dir" && | ||
| printf '%s\n' "$AGENT_ENV_CONF" >"$conf_dir/agent-env.conf.tmp" && | ||
| mv "$conf_dir/agent-env.conf.tmp" "$conf_dir/agent-env.conf" | ||
| elif [ ! -f "$conf_dir/agent-env.conf" ]; then | ||
| log "no AGENT_ENV_CONF secret and no .agents/agent-env.conf; cloud and tailnet access stay off" | ||
| fi | ||
| } | ||
|
|
||
| # Add an apt repository once. Keys that are already binary (Tailscale's | ||
| # .noarmor.gpg) are saved as they are; armored ones are dearmored. | ||
| apt_repo() { # name key-url key-file line | ||
| [ -f "/etc/apt/sources.list.d/$1.list" ] && return 0 | ||
| case "$2" in | ||
| *.noarmor.gpg) sudo curl -fsSL "$2" -o "$3" ;; | ||
| *) curl -fsSL "$2" | sudo gpg --batch --yes --dearmor -o "$3" ;; | ||
| esac && echo "$4" | sudo tee "/etc/apt/sources.list.d/$1.list" >/dev/null | ||
| } | ||
|
|
||
| apt_install() { sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends "$@"; } | ||
|
|
||
| # Each tool is installed on its own, so one failure (an unreachable vendor | ||
| # repository, say) does not cost the others. | ||
| install_tools() { | ||
| local base=() vendor=() codename rc=0 | ||
| command -v curl >/dev/null || base+=(curl ca-certificates) | ||
| command -v jq >/dev/null || base+=(jq) | ||
| command -v unzip >/dev/null || base+=(unzip) | ||
| command -v gcloud >/dev/null || vendor+=(google-cloud-cli) | ||
| command -v tailscale >/dev/null || vendor+=(tailscale) | ||
| [ "${#vendor[@]}" -gt 0 ] && ! command -v gpg >/dev/null && base+=(gnupg) | ||
|
|
||
| if [ "${#base[@]}" -gt 0 ] || [ "${#vendor[@]}" -gt 0 ]; then | ||
| sudo apt-get update -qq || { log "apt-get update failed"; rc=1; } | ||
| fi | ||
| if [ "${#base[@]}" -gt 0 ]; then | ||
| apt_install "${base[@]}" || { log "installing ${base[*]} failed"; rc=1; } | ||
| fi | ||
| if [ "${#vendor[@]}" -gt 0 ]; then | ||
| codename="$(. /etc/os-release && echo "${VERSION_CODENAME:-}")" | ||
| sudo install -d -m 0755 /etc/apt/keyrings | ||
| if [[ " ${vendor[*]} " == *" google-cloud-cli "* ]]; then | ||
| apt_repo google-cloud-sdk https://packages.cloud.google.com/apt/doc/apt-key.gpg /etc/apt/keyrings/cloud.google.gpg \ | ||
| "deb [signed-by=/etc/apt/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" || | ||
| log "adding the Google Cloud repository failed" | ||
| fi | ||
| if [[ " ${vendor[*]} " == *" tailscale "* ]]; then | ||
| apt_repo tailscale "https://pkgs.tailscale.com/stable/ubuntu/${codename}.noarmor.gpg" /etc/apt/keyrings/tailscale.gpg \ | ||
| "deb [signed-by=/etc/apt/keyrings/tailscale.gpg] https://pkgs.tailscale.com/stable/ubuntu ${codename} main" || | ||
| log "adding the Tailscale repository failed" | ||
| fi | ||
| sudo apt-get update -qq || log "apt-get update failed" | ||
| local pkg | ||
| for pkg in "${vendor[@]}"; do | ||
| apt_install "$pkg" || { log "installing $pkg failed"; rc=1; } | ||
| done | ||
| fi | ||
| # Tailscale joins per session (agent-tailscale-up), never in the snapshot, | ||
| # and on Cursor through its own userspace daemon with the proxies. A system | ||
| # tailscaled, newly installed or already in the image, would take its place. | ||
| if command -v tailscale >/dev/null; then | ||
| sudo systemctl disable --now tailscaled >/dev/null 2>&1 || true | ||
| fi | ||
|
|
||
| if ! command -v aws >/dev/null; then | ||
| local tmp | ||
| tmp="$(mktemp -d)" | ||
| if curl -fsSLo "$tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" && | ||
| unzip -q "$tmp/awscliv2.zip" -d "$tmp" && sudo "$tmp/aws/install"; then | ||
| : | ||
| else | ||
| log "installing the AWS CLI failed" | ||
| rc=1 | ||
| fi | ||
| rm -rf "$tmp" | ||
| fi | ||
| return "$rc" | ||
| } | ||
|
|
||
| shell_env() { | ||
| # Cursor resets PATH for agent shells, so the helpers go in /usr/local/bin, | ||
| # and gcloud may run the executable token helper only with this variable. | ||
| local f | ||
| for f in "$here"/agent-*; do sudo ln -sf "$f" /usr/local/bin/; done | ||
| printf '%s\n' \ | ||
| 'export GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1' \ | ||
| 'if [ -z "${AWS_PROFILE:-}" ] && grep -qE "^\[[[:space:]]*profile[[:space:]]+coding-agents[[:space:]]*\]" "${AWS_CONFIG_FILE:-$HOME/.aws/config}" 2>/dev/null; then export AWS_PROFILE=coding-agents; fi' | | ||
| sudo tee /etc/profile.d/agent-cloud.sh >/dev/null | ||
| grep -qF '/etc/profile.d/agent-cloud.sh' /etc/bash.bashrc 2>/dev/null || | ||
| echo '. /etc/profile.d/agent-cloud.sh' | sudo tee -a /etc/bash.bashrc >/dev/null | ||
| } | ||
|
|
||
| case "${1:-}" in | ||
| install) | ||
| save_conf | ||
| install_tools || true | ||
| shell_env || log "linking the helpers failed" | ||
| # No login here: a snapshot build has no agent identity. start logs in. | ||
| ;; | ||
| start) | ||
| save_conf | ||
| # A snapshot from an older kit may lack the links. | ||
| [ -e /usr/local/bin/agent-tailscale-up ] || shell_env || true | ||
| export GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1 | ||
| # The AWS profile is written at once. The GCP login needs the platform's | ||
| # identity, which can appear late, so keep trying in the background for | ||
| # up to 10 minutes rather than give up for the session. | ||
| if ! timeout 90 "$here/agent-cloud-login"; then | ||
| log "gcloud is not configured yet; retrying in the background (log: /tmp/agent-cloud-login.log)" | ||
| setsid nohup bash -c 'for _ in $(seq 1 20); do sleep 30; timeout 90 "$1" && exit 0; done; exit 1' \ | ||
| agent-cloud-login-retry "$here/agent-cloud-login" >>/tmp/agent-cloud-login.log 2>&1 </dev/null & | ||
| fi | ||
| "$here/agent-tailscale-up" --background || log "could not start the tailnet watcher" | ||
| ;; | ||
| *) | ||
| echo "usage: agent-access install|start" >&2 | ||
| exit 2 | ||
| ;; | ||
| esac | ||
| exit 0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/usr/bin/env bash | ||
| # AWS credential_process helper: exchanges a short-lived platform OIDC token | ||
| # for temporary role credentials with AssumeRoleWithWebIdentity. The AWS CLI | ||
| # and SDKs call it on demand; nothing is written to disk. | ||
| set -euo pipefail | ||
|
|
||
| here="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)" | ||
| . "$here/../load-env.sh" | ||
| platform="$("$here/agent-platform")" | ||
|
|
||
| if [ -z "$AWS_ROLE_ARN" ]; then | ||
| echo "agent-aws-credentials: AWS access is turned off (no AWS_ROLE_ARN; see .agents/load-env.sh)" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # The token goes to the AWS CLI through an owner-only tmpfs file, never on its | ||
| # command line. | ||
| tokenfile="$(mktemp -p /dev/shm)" | ||
| trap 'rm -f "$tokenfile"' EXIT | ||
| token="$("$here/agent-oidc-token" sts.amazonaws.com)" | ||
| printf '%s' "$token" >"$tokenfile" | ||
| unset token | ||
| # Unsigned call with an empty config and no profile selected, so this helper | ||
| # never recurses into itself and an inherited AWS_PROFILE (coding-agents) | ||
| # cannot point at a profile the empty config lacks. | ||
| env -u AWS_PROFILE -u AWS_DEFAULT_PROFILE \ | ||
| AWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null AWS_EC2_METADATA_DISABLED=true \ | ||
| aws sts assume-role-with-web-identity --no-sign-request \ | ||
| --region "$AWS_REGION" \ | ||
| --role-arn "$AWS_ROLE_ARN" \ | ||
| --role-session-name "${platform}-$(hostname -s | cut -c1-40)" \ | ||
| --web-identity-token "file://$tokenfile" \ | ||
| --duration-seconds 3600 \ | ||
| --output json | | ||
| jq '.Credentials | {Version: 1, AccessKeyId, SecretAccessKey, SessionToken, Expiration}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,163 @@ | ||
| #!/usr/bin/env bash | ||
| # Point gcloud, the Google client libraries and the AWS CLI/SDKs at the | ||
| # keyless helpers above. Writes only configuration (resource names and helper | ||
| # paths), never credentials. Used on Cursor; Devin gets the same result from | ||
| # the CognitionAI setup-gcp-oidc and setup-aws-oidc blueprint actions. | ||
| # | ||
| # Everything it writes is its own: a gcloud configuration and an AWS profile | ||
| # named coding-agents, ~/.config/gcloud/agent-wif.json, and the Google | ||
| # application default credentials file only when none exists or it is ours. | ||
| # Other configurations, profiles and credentials are left alone. GCP and AWS | ||
| # are handled independently, and an empty setting in agent-env.conf removes | ||
| # what an earlier run set up. Safe to run again; it never needs the network. | ||
| # The AWS profile does not depend on the platform and is written at once; the | ||
| # GCP configuration waits up to 30s for the platform's identity and exits 1 | ||
| # without it, so callers can retry. | ||
| set -uo pipefail | ||
|
|
||
| here="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)" | ||
| . "$here/../load-env.sh" | ||
| # One run at a time per user: agent-access start can leave a background retry | ||
| # running when start runs again, and two runs rewriting the AWS profile at | ||
| # once could leave it duplicated. | ||
| exec 8>>"/tmp/agent-cloud-login.$(id -u).lock" | ||
| if ! flock -w 150 8; then | ||
| echo "agent-cloud-login: another run still holds the lock; skipping" >&2 | ||
| exit 1 | ||
| fi | ||
| platform="$("$here/agent-platform")" | ||
| name=coding-agents | ||
| gdir="$HOME/.config/gcloud" | ||
| wif="$gdir/agent-wif.json" | ||
| adc="$gdir/application_default_credentials.json" | ||
| aws_cfg="${AWS_CONFIG_FILE:-$HOME/.aws/config}" | ||
| export GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1 | ||
|
|
||
| # True when the ADC file was written by this helper. | ||
| adc_is_ours() { [ -f "$adc" ] && jq -e --arg cmd "$here/agent-gcp-token" \ | ||
| '.credential_source.executable.command == $cmd' "$adc" >/dev/null 2>&1; } | ||
|
|
||
| setup_gcp() { | ||
| mkdir -p "$gdir" || return 1 | ||
| jq -n \ | ||
| --arg aud "//iam.googleapis.com/${GCP_WIF_POOL}/providers/${platform}" \ | ||
| --arg sa "$GCP_SERVICE_ACCOUNT" \ | ||
| --arg cmd "$here/agent-gcp-token" \ | ||
| '{ | ||
| type: "external_account", | ||
| audience: $aud, | ||
| subject_token_type: "urn:ietf:params:oauth:token-type:jwt", | ||
| token_url: "https://sts.googleapis.com/v1/token", | ||
| service_account_impersonation_url: ("https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/" + $sa + ":generateAccessToken"), | ||
| credential_source: {executable: {command: $cmd, timeout_millis: 30000}} | ||
| }' >"$wif" || return 1 | ||
|
cursor[bot] marked this conversation as resolved.
Resolved
|
||
| if [ ! -e "$adc" ] || adc_is_ours; then | ||
| cp "$wif" "$adc" || return 1 | ||
| else | ||
| echo "agent-cloud-login: keeping the existing $adc; set GOOGLE_APPLICATION_CREDENTIALS=$wif to use the agent identity" >&2 | ||
| fi | ||
|
|
||
| local active | ||
| active="$(gcloud config configurations list --filter=is_active:true --format='value(name)' 2>/dev/null)" | ||
| gcloud config configurations describe "$name" >/dev/null 2>&1 || | ||
| gcloud config configurations create "$name" --no-activate --quiet >/dev/null 2>&1 || return 1 | ||
| # With an account set, `config set project` refreshes a token, which fails | ||
| # outside an agent run: clear it, set the project, then log in again. | ||
| gcloud --configuration="$name" config unset account --quiet >/dev/null 2>&1 || true | ||
| gcloud --configuration="$name" config set project "$GCP_PROJECT" --quiet >/dev/null 2>&1 || return 1 | ||
| gcloud --configuration="$name" auth login --cred-file="$wif" --quiet >/dev/null 2>&1 || return 1 | ||
| # Make it the active configuration unless someone set up another one. | ||
| if [ -z "$active" ] || [ "$active" = "$name" ] || | ||
| { [ "$active" = default ] && [ -z "$(gcloud --configuration=default config get account 2>/dev/null)" ]; }; then | ||
| gcloud config configurations activate "$name" --quiet >/dev/null 2>&1 || return 1 | ||
| else | ||
| echo "agent-cloud-login: gcloud configuration '$active' stays active; use --configuration=$name" >&2 | ||
| fi | ||
|
AHarmlessPyro marked this conversation as resolved.
Resolved
|
||
| } | ||
|
|
||
| remove_gcp() { | ||
| # Only the configuration is removed, not the account's stored credential, | ||
| # which another configuration may share. That credential runs | ||
| # agent-gcp-token, which refuses to mint while GCP access is turned off. | ||
| if gcloud config configurations describe "$name" >/dev/null 2>&1; then | ||
| [ "$(gcloud config configurations list --filter=is_active:true --format='value(name)' 2>/dev/null)" = "$name" ] && | ||
| gcloud config configurations activate default --quiet >/dev/null 2>&1 | ||
| gcloud config configurations delete "$name" --quiet >/dev/null 2>&1 | ||
| fi | ||
| adc_is_ours && rm -f "$adc" | ||
| rm -f "$wif" | ||
| return 0 | ||
| } | ||
|
|
||
| # Drop the [profile coding-agents] section from the AWS config file. | ||
| strip_aws_profile() { | ||
| [ -f "$aws_cfg" ] || return 0 | ||
| local tmp | ||
| # mktemp creates the file 0600; then copy the original's mode onto it. | ||
| tmp="$(mktemp "$aws_cfg.XXXXXX")" || return 1 | ||
| # A header may carry extra spaces, a trailing comment, trailing whitespace | ||
| # or a CRLF ending; botocore still reads it as the same profile, so match | ||
| # it the same way. | ||
| if awk -v n="$name" ' | ||
| BEGIN { re = "^\\[[ \t]*profile[ \t]+" n "[ \t]*\\][ \t\r]*([#;].*)?$" } | ||
| /^\[/ { skip = ($0 ~ re) } | ||
| !skip' "$aws_cfg" >"$tmp" && chmod --reference="$aws_cfg" "$tmp" && | ||
| mv "$tmp" "$aws_cfg"; then | ||
| : | ||
| else | ||
| rm -f "$tmp" | ||
| return 1 | ||
| fi | ||
| } | ||
|
|
||
| setup_aws() { | ||
| mkdir -p "$(dirname "$aws_cfg")" || return 1 | ||
| strip_aws_profile || return 1 | ||
| [ -s "$aws_cfg" ] && [ -n "$(tail -c1 "$aws_cfg")" ] && echo >>"$aws_cfg" | ||
| cat >>"$aws_cfg" <<CONF || return 1 | ||
| [profile $name] | ||
| region = $AWS_REGION | ||
| credential_process = $here/agent-aws-credentials | ||
| CONF | ||
| } | ||
|
|
||
| rc=0 | ||
| # AWS first: it only writes a file, so a stalled GCP login cannot use up the | ||
| # caller's time limit before the AWS profile exists. | ||
| if [ -z "$AWS_ROLE_ARN" ]; then | ||
| if strip_aws_profile; then | ||
| echo "agent-cloud-login: AWS_ROLE_ARN not set; aws profile $name removed" | ||
| else | ||
| echo "agent-cloud-login: AWS_ROLE_ARN not set, but removing aws profile $name failed" >&2 | ||
| rc=1 | ||
| fi | ||
| elif setup_aws; then | ||
| echo "agent-cloud-login: aws profile $name uses $AWS_ROLE_ARN through web identity" | ||
| else | ||
| echo "agent-cloud-login: aws setup failed" >&2 | ||
| rc=1 | ||
| fi | ||
| # The GCP audience names the platform. Cursor's token socket can appear a | ||
| # while after boot, so wait for it rather than write one for "unknown", and | ||
| # leave gcloud alone if it never appears (the caller retries). | ||
| if [ -n "$GCP_SERVICE_ACCOUNT" ] && [ -n "$GCP_WIF_POOL" ]; then | ||
| for _ in $(seq 1 30); do | ||
| [ "$platform" != unknown ] && break | ||
| sleep 1 | ||
| platform="$("$here/agent-platform")" | ||
| done | ||
| fi | ||
| if [ -z "$GCP_SERVICE_ACCOUNT" ] || [ -z "$GCP_WIF_POOL" ]; then | ||
| remove_gcp | ||
| echo "agent-cloud-login: GCP_SERVICE_ACCOUNT or GCP_WIF_POOL not set; gcloud agent access removed" | ||
| elif [ "$platform" = unknown ]; then | ||
| echo "agent-cloud-login: no Cursor or Devin identity yet; gcloud left unchanged" >&2 | ||
| rc=1 | ||
| elif setup_gcp; then | ||
| echo "agent-cloud-login: gcloud configuration $name uses $GCP_SERVICE_ACCOUNT through workload identity federation" | ||
| else | ||
| echo "agent-cloud-login: gcloud setup failed" >&2 | ||
| rc=1 | ||
| fi | ||
|
|
||
| exit "$rc" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.