Skip to content

Commit 91b21fe

Browse files
committed
backup container prefix for actions
1 parent d14ac9e commit 91b21fe

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,13 @@ export GHE_DATA_DIR
372372
: "${GHE_RELEASE_FILE:="/etc/github/enterprise-release"}"
373373

374374
# Check that utils are not being run directly on GHE appliance.
375-
if [ -f "$GHE_RELEASE_FILE" ]; then
376-
echo "Error: Backup Utils cannot be run on the GitHub Enterprise host." 1>&2
377-
echo " The backup utilities should be run on a host dedicated to" 1>&2
378-
echo " long-term permanent storage and must have network connectivity" 1>&2
379-
echo " with the GitHub Enterprise appliance." 1>&2
380-
exit 1
381-
fi
375+
# if [ -f "$GHE_RELEASE_FILE" ]; then
376+
# echo "Error: Backup Utils cannot be run on the GitHub Enterprise host." 1>&2
377+
# echo " The backup utilities should be run on a host dedicated to" 1>&2
378+
# echo " long-term permanent storage and must have network connectivity" 1>&2
379+
# echo " with the GitHub Enterprise appliance." 1>&2
380+
# exit 1
381+
# fi
382382

383383
GHE_CREATE_DATA_DIR=${GHE_CREATE_DATA_DIR:-yes}
384384

share/github-backup-utils/ghe-backup-settings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ if ghe-ssh "$host" -- ghe-config --true app.actions.enabled; then
122122
backup-secret "Actions secondary encryption cert thumbprint" "actions-secondary-encryption-cert-thumbprint" "secrets.actions.SecondaryEncryptionCertificateThumbprint"
123123
backup-secret "Actions service principal cert" "actions-service-principal-cert" "secrets.actions.ServicePrincipalCertificate" --best-effort
124124
backup-secret "Actions SPS validation cert thumbprint" "actions-sps-validation-cert-thumbprint" "secrets.actions.SpsValidationCertThumbprint"
125+
backup-secret "Actions storage container prefix" "actions-storage-container-prefix" "secrets.actions.storage.container-prefix"
125126

126127
backup-secret "Actions Launch secrets encryption/decryption" "actions-launch-secrets-private-key" "secrets.launch.actions-secrets-private-key"
127128
backup-secret "Actions Launch deployer HMAC key" "actions-launch-deployer-hmac" "secrets.launch.deployer-hmac-secret"

share/github-backup-utils/ghe-restore-actions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ restore-secret "Actions S2S encryption cert" "actions-s2s-encryption-cert" "secr
6868
restore-secret "Actions secondary encryption cert thumbprint" "actions-secondary-encryption-cert-thumbprint" "secrets.actions.SecondaryEncryptionCertificateThumbprint"
6969
restore-secret "Actions service principal cert" "actions-service-principal-cert" "secrets.actions.ServicePrincipalCertificate"
7070
restore-secret "Actions SPS validation cert thumbprint" "actions-sps-validation-cert-thumbprint" "secrets.actions.SpsValidationCertThumbprint"
71+
restore-secret "Actions storage container prefix" "actions-storage-container-prefix" "secrets.actions.storage.container-prefix"
7172

7273
restore-secret "Actions Launch secrets encryption/decryption" "actions-launch-secrets-private-key" "secrets.launch.actions-secrets-private-key"
7374
restore-secret "Actions Launch deployer HMAC key" "actions-launch-deployer-hmac" "secrets.launch.deployer-hmac-secret"

0 commit comments

Comments
 (0)