diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..e43b0f9889 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/scripts/decrypt_gha_secret.sh b/scripts/decrypt_gha_secret.sh new file mode 100755 index 0000000000..ea2a6d7f98 --- /dev/null +++ b/scripts/decrypt_gha_secret.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Copyright 2020 Google +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# $1 is the file to decrypt +# $2 is the output file +# $3 is the passphrase + +# Decrypt the file +# --batch to prevent interactive command --yes to assume "yes" for questions + +file="$1" +output="$2" +passphrase="$3" +[ -z "$passphrase" ] || \ + gpg --quiet --batch --yes --decrypt --passphrase="$passphrase" --output $output "$file" \ No newline at end of file diff --git a/scripts/gha-encrypted/README b/scripts/gha-encrypted/README new file mode 100644 index 0000000000..e73cd28794 --- /dev/null +++ b/scripts/gha-encrypted/README @@ -0,0 +1,3 @@ +See https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets + +Googlers: code search firebase/cpp/Secrets to find the sources. \ No newline at end of file diff --git a/scripts/gha-encrypted/admob/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/admob/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..c3631f2e6b Binary files /dev/null and b/scripts/gha-encrypted/admob/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/admob/google-services.json.gpg b/scripts/gha-encrypted/admob/google-services.json.gpg new file mode 100644 index 0000000000..e637aa4837 Binary files /dev/null and b/scripts/gha-encrypted/admob/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/analytics/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/analytics/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..ea0a6b36e3 Binary files /dev/null and b/scripts/gha-encrypted/analytics/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/analytics/google-services.json.gpg b/scripts/gha-encrypted/analytics/google-services.json.gpg new file mode 100644 index 0000000000..f4bd37ed18 Binary files /dev/null and b/scripts/gha-encrypted/analytics/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/app/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/app/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..7e1b798a7e Binary files /dev/null and b/scripts/gha-encrypted/app/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/app/google-services.json.gpg b/scripts/gha-encrypted/app/google-services.json.gpg new file mode 100644 index 0000000000..2fedfcc9bd Binary files /dev/null and b/scripts/gha-encrypted/app/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/auth/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/auth/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..b1f030da95 Binary files /dev/null and b/scripts/gha-encrypted/auth/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/auth/google-services.json.gpg b/scripts/gha-encrypted/auth/google-services.json.gpg new file mode 100644 index 0000000000..b42eec5cd3 --- /dev/null +++ b/scripts/gha-encrypted/auth/google-services.json.gpg @@ -0,0 +1,5 @@ +  '6;@RhŘmo2xڪch`qIT$ĸgB\dAQf (]N |Ђ$26S~渒ThMeE\˚)o@b R}·[)*;aZ+NQn˅fK9bm*|&k1~-oOnq( n9kHALJ#JhXH̲!^◙t;q(S{Q[;eGrd?,p ≵F¡ͱi *wz59ioP,2H1 ^LGB <73`NB+ۺ%9N)6f- ,sγ`@Pr'.ۡFuz~+I]Q%\|.KXOmB|:3o]jav8GV u~'Jѯy@,!dy kdy +ckpSKq0As\ 1|> Y5RhIT8#3B(d1fsAXJj SGigCgUt|cIsh*BXᲫD%Km,mFC2tqsmAcOzfNJVTox(p8~/LFmd7V׻YO36 +PM,'?A&wkt) nZ6W +[>]q+"SU|s@|C.COz+'G 3E2VԠ@/tQ'\,T`s]# +:-/,pRH4Fӣ \ No newline at end of file diff --git a/scripts/gha-encrypted/database/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/database/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..b2a5563729 Binary files /dev/null and b/scripts/gha-encrypted/database/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/database/google-services.json.gpg b/scripts/gha-encrypted/database/google-services.json.gpg new file mode 100644 index 0000000000..bc6f3d023e Binary files /dev/null and b/scripts/gha-encrypted/database/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/dynamic_links/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/dynamic_links/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..337f30cd85 Binary files /dev/null and b/scripts/gha-encrypted/dynamic_links/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/dynamic_links/google-services.json.gpg b/scripts/gha-encrypted/dynamic_links/google-services.json.gpg new file mode 100644 index 0000000000..8879a28010 Binary files /dev/null and b/scripts/gha-encrypted/dynamic_links/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/firestore/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/firestore/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..4fe6ec6b5d Binary files /dev/null and b/scripts/gha-encrypted/firestore/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/firestore/google-services.json.gpg b/scripts/gha-encrypted/firestore/google-services.json.gpg new file mode 100644 index 0000000000..321690e3b4 Binary files /dev/null and b/scripts/gha-encrypted/firestore/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/functions/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/functions/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..166c7dd01f Binary files /dev/null and b/scripts/gha-encrypted/functions/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/functions/google-services.json.gpg b/scripts/gha-encrypted/functions/google-services.json.gpg new file mode 100644 index 0000000000..5bcda0f3d7 Binary files /dev/null and b/scripts/gha-encrypted/functions/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/messaging/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/messaging/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..eab48b98fb Binary files /dev/null and b/scripts/gha-encrypted/messaging/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/messaging/google-services.json.gpg b/scripts/gha-encrypted/messaging/google-services.json.gpg new file mode 100644 index 0000000000..0382bdc6af Binary files /dev/null and b/scripts/gha-encrypted/messaging/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/remote_config/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/remote_config/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..d29254bde3 Binary files /dev/null and b/scripts/gha-encrypted/remote_config/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/remote_config/google-services.json.gpg b/scripts/gha-encrypted/remote_config/google-services.json.gpg new file mode 100644 index 0000000000..593f09b559 Binary files /dev/null and b/scripts/gha-encrypted/remote_config/google-services.json.gpg differ diff --git a/scripts/gha-encrypted/storage/GoogleService-Info.plist.gpg b/scripts/gha-encrypted/storage/GoogleService-Info.plist.gpg new file mode 100644 index 0000000000..40ed4127b4 Binary files /dev/null and b/scripts/gha-encrypted/storage/GoogleService-Info.plist.gpg differ diff --git a/scripts/gha-encrypted/storage/google-services.json.gpg b/scripts/gha-encrypted/storage/google-services.json.gpg new file mode 100644 index 0000000000..88d6852b40 Binary files /dev/null and b/scripts/gha-encrypted/storage/google-services.json.gpg differ