Skip to content

Commit a5a0cf3

Browse files
committed
check ACCEPTANCE_ALLOW_DESTRUCTIVE for reset-projects script
1 parent 32a47a7 commit a5a0cf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

acceptance/scripts/reset-project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const LIST_PAGE_SIZE = 1000
1919
const EMPTY_BUCKET_POLL_INTERVAL_MS = 2000
2020
const EMPTY_BUCKET_POLL_TIMEOUT_MS = 5 * 60 * 1000
2121

22-
const confirmed = process.argv.includes('--yes')
22+
const confirmed = process.argv.includes('--yes') && process.env.ACCEPTANCE_ALLOW_DESTRUCTIVE
2323

2424
interface StorageBucket {
2525
id: string
@@ -53,7 +53,7 @@ async function main() {
5353
console.log(
5454
confirmed
5555
? 'Mode: LIVE (--yes passed, resources will be deleted)'
56-
: 'Mode: DRY RUN (pass --yes to actually delete anything)'
56+
: 'Mode: DRY RUN (pass --yes and ensure ACCEPTANCE_ALLOW_DESTRUCTIVE is set to actually delete anything)'
5757
)
5858
if (config.rlsBucket) {
5959
console.log(`Preserving RLS fixture bucket: ${config.rlsBucket} (emptied, not deleted)`)

0 commit comments

Comments
 (0)