Skip to content

Commit 4ab5dc5

Browse files
authored
GHA Project Maintenance (#8632)
* Update storage secrets * Rotate FIREGSignInInfo.h * Rotate Auth credentials * Add script for encrypting secrets * Trigger auth GHA * Update auth.yml * Update encrypt_gha_secret.sh
1 parent d93d223 commit 4ab5dc5

File tree

6 files changed

+27
-0
lines changed

6 files changed

+27
-0
lines changed

scripts/encrypt_gha_secret.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# Copyright 2021 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# $1 is the file to encrypt
18+
# $2 is the passphrase
19+
20+
# Encrypt the file
21+
# See https://docs.github.com/en/actions/reference/encrypted-secrets for more details.
22+
# --batch to prevent interactive command
23+
24+
file="$1"
25+
passphrase="$2"
26+
[ -z "$passphrase" ] || \
27+
gpg --batch --passphrase="$passphrase" --symmetric --cipher-algo AES256 $file
-2 Bytes
Binary file not shown.
Binary file not shown.
-16 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)