Skip to content

Commit 9e7570b

Browse files
committed
test
1 parent fd91473 commit 9e7570b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/deploy/deploy-prod-dc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ if (!process.env.NODE_TEST_CONTEXT) {
1717
}
1818

1919
export async function main(...args: string[]): Promise<void> {
20-
command`curl -X GET https://runtime-metadata-service.us1.ddbuild.io/v2/datacenters?selector=datacenter.environment=prod&datacenter.flavor=site --silent -H ${'accept: application/json'}`
20+
const TOKEN = command`authanywhere --raw`.run()
21+
command`curl -X GET https://runtime-metadata-service.us1.ddbuild.io/v2/datacenters?selector=datacenter.environment=prod&datacenter.flavor=site --silent -H ${'accept: application/json'} -H ${`Authorization: Bearer ${TOKEN}`}`
2122
.withLogs()
2223
.run()
2324

0 commit comments

Comments
 (0)