Skip to content

Commit 8852515

Browse files
[infra] Added the secret request back into the script (#187)
1 parent 36fe0a7 commit 8852515

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/scripts/issues/orderIdValidation.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ module.exports = async ({ core, context, github }) => {
1212
const issueNumber = context.issue.number;
1313

1414
const orderId = process.env.ORDER_ID;
15-
const orderApiToken = process.env.ORDER_API_TOKEN;
15+
16+
const orderApiToken = await github.rest.actions.getOrgSecret({
17+
owner,
18+
secret_name: 'SHOP_AUTH_TOKEN',
19+
});
1620

1721
const orderApi = 'https://store-wp.mui.com/wp-json/wc/v3/orders/';
1822

0 commit comments

Comments
 (0)