Downgrade got package to v11.x

got@v12.x has a dependency on @sindresorhus/is@v5.x and it uses optional chaining operator "?.".  
Probably due to issue https://github.com/vercel/ncc/issues/873 this syntax got into our dist/index.js. For some unknown reason it results in error when action is executed in GitHub runner despite the node version is 16.17.
This commit is contained in:
Michal Dorner 2022-08-23 23:10:34 +02:00
parent a95a149c9a
commit aba461c3a7
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C
6 changed files with 4087 additions and 6356 deletions

View file

@ -5,7 +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'
import {got} from 'got'
import got from 'got'
const asyncStream = promisify(stream.pipeline)
export function getCheckRunContext(): {sha: string; runId: number} {