From 72f18cb5360110398ed88fc753eac2923d385342 Mon Sep 17 00:00:00 2001 From: Connor Vidlock Date: Wed, 26 Jul 2023 14:52:04 -0500 Subject: [PATCH] downgrade to v12 of got --- package-lock.json | 10 +++++----- package.json | 2 +- src/utils/github-utils.ts | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index fc1d479..e4e2484 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@actions/github": "^5.0.3", "adm-zip": "^0.5.3", "fast-glob": "^3.2.5", - "got": "^13.0.0", + "got": "^12.0.0", "picomatch": "^2.2.2", "xml2js": "^0.5.0" }, @@ -3758,9 +3758,9 @@ "dev": true }, "node_modules/got": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/got/-/got-13.0.0.tgz", - "integrity": "sha512-XfBk1CxOOScDcMr9O1yKkNaQyy865NbYs+F7dr4H0LZMVgCj2Le59k6PqbNHoL5ToeaEQUYh6c6yMfVcc6SJxA==", + "version": "12.6.1", + "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", + "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", "dependencies": { "@sindresorhus/is": "^5.2.0", "@szmarczak/http-timer": "^5.0.1", @@ -3775,7 +3775,7 @@ "responselike": "^3.0.0" }, "engines": { - "node": ">=16" + "node": ">=14.16" }, "funding": { "url": "https://github.com/sindresorhus/got?sponsor=1" diff --git a/package.json b/package.json index 33c3a80..9d4af54 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@actions/github": "^5.0.3", "adm-zip": "^0.5.3", "fast-glob": "^3.2.5", - "got": "^13.0.0", + "got": "^12.0.0", "picomatch": "^2.2.2", "xml2js": "^0.5.0" }, diff --git a/src/utils/github-utils.ts b/src/utils/github-utils.ts index 1d4add7..ee5b461 100644 --- a/src/utils/github-utils.ts +++ b/src/utils/github-utils.ts @@ -5,6 +5,7 @@ import {GitHub} from '@actions/github/lib/utils' import type {PullRequest} from '@octokit/webhooks-types' import * as stream from 'stream' import {promisify} from 'util' +// eslint-disable-next-line import/no-named-as-default import got from 'got' const asyncStream = promisify(stream.pipeline)