Skip to content

Commit bf5b69f

Browse files
committed
Update dependencies and fix headers in httpRedirectFetch() function
1 parent 87f3fc8 commit bf5b69f

File tree

4 files changed

+173
-170
lines changed

4 files changed

+173
-170
lines changed

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ outputs:
7070
description: The number of deployed seats
7171

7272
runs:
73-
using: "node16"
73+
using: "node20"
7474
main: "dist/index.js"

dist/index.js

+17-14
Original file line numberDiff line numberDiff line change
@@ -30496,6 +30496,9 @@ function httpRedirectFetch (fetchParams, response) {
3049630496
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
3049730497
request.headersList.delete('authorization')
3049830498

30499+
// https://fetch.spec.whatwg.org/#authentication-entries
30500+
request.headersList.delete('proxy-authorization', true)
30501+
3049930502
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
3050030503
request.headersList.delete('cookie')
3050130504
request.headersList.delete('host')
@@ -41547,20 +41550,20 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
4154741550
if (input.enterprise && input.enterprise !== null) {
4154841551
core.info(`Fetching all organizations for ${input.enterprise}...`);
4154941552
do {
41550-
const query = `
41551-
query ($enterprise: String!, $after: String) {
41552-
enterprise(slug: $enterprise) {
41553-
organizations(first: 100, after: $after) {
41554-
pageInfo {
41555-
endCursor
41556-
hasNextPage
41557-
}
41558-
nodes {
41559-
login
41560-
}
41561-
}
41562-
}
41563-
}
41553+
const query = `
41554+
query ($enterprise: String!, $after: String) {
41555+
enterprise(slug: $enterprise) {
41556+
organizations(first: 100, after: $after) {
41557+
pageInfo {
41558+
endCursor
41559+
hasNextPage
41560+
}
41561+
nodes {
41562+
login
41563+
}
41564+
}
41565+
}
41566+
}
4156441567
`;
4156541568
const variables = { "enterprise": input.enterprise, "after": afterCursor };
4156641569
const response = yield octokit.graphql(query, variables);

0 commit comments

Comments
 (0)