File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,32 @@ begin_test "ghe-restore with secret scanning encrypted secrets encryption keys f
454
454
)
455
455
end_test
456
456
457
+ begin_test " ghe-restore with secret scanning encrypted content encryption keys"
458
+ (
459
+ set -e
460
+ rm -rf " $GHE_REMOTE_ROOT_DIR "
461
+ setup_remote_metadata
462
+
463
+ required_files=(
464
+ " secret-scanning-user-content-delimited-encryption-root-keys"
465
+ )
466
+
467
+ for file in " ${required_files[@]} " ; do
468
+ echo " foo" > " $GHE_DATA_DIR /current/$file "
469
+ done
470
+
471
+ GHE_REMOTE_VERSION=3.11.0 ghe-restore -v -f localhost
472
+
473
+ required_secrets=(
474
+ " secrets.secret-scanning.secret-scanning-user-content-delimited-encryption-root-keys"
475
+ )
476
+
477
+ for secret in " ${required_secrets[@]} " ; do
478
+ [ " $( ghe-ssh " $GHE_HOSTNAME " -- ghe-config " $secret " ) " = " " ] # expecting these to not be set for versions below 3.8.0
479
+ done
480
+ )
481
+ end_test
482
+
457
483
# Setup Actions data for the subsequent tests
458
484
setup_actions_test_data " $GHE_DATA_DIR /1"
459
485
You can’t perform that action at this time.
0 commit comments