diff --git a/dist/index.cjs b/dist/index.cjs index f4773980..a4dcaaa7 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -9571,8 +9571,9 @@ var require_github = __commonJS({ var Context = __importStar(require_context()); var utils_1 = require_utils4(); exports.context = new Context.Context(); - function getOctokit3(token, options) { - return new utils_1.GitHub(utils_1.getOctokitOptions(token, options)); + function getOctokit3(token, options, ...additionalPlugins) { + const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins); + return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options)); } exports.getOctokit = getOctokit3; } diff --git a/package-lock.json b/package-lock.json index 63340a6a..f05ffc25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@actions/core": "^1.9.1", "@actions/exec": "^1.1.1", - "@actions/github": "^5.0.3", + "@actions/github": "^5.1.0", "hosted-git-info": "^5.1.0" }, "devDependencies": { @@ -50,9 +50,9 @@ } }, "node_modules/@actions/github": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.0.3.tgz", - "integrity": "sha512-myjA/pdLQfhUGLtRZC/J4L1RXOG4o6aYdiEq+zr5wVVKljzbFld+xv10k1FX6IkIJtNxbAq44BdwSNpQ015P0A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz", + "integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec5cs8f/a8A==", "dependencies": { "@actions/http-client": "^2.0.1", "@octokit/core": "^3.6.0", @@ -17509,9 +17509,9 @@ } }, "@actions/github": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.0.3.tgz", - "integrity": "sha512-myjA/pdLQfhUGLtRZC/J4L1RXOG4o6aYdiEq+zr5wVVKljzbFld+xv10k1FX6IkIJtNxbAq44BdwSNpQ015P0A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz", + "integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec5cs8f/a8A==", "requires": { "@actions/http-client": "^2.0.1", "@octokit/core": "^3.6.0", diff --git a/package.json b/package.json index 5cbb0c5c..7b6360ce 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "dependencies": { "@actions/core": "^1.9.1", "@actions/exec": "^1.1.1", - "@actions/github": "^5.0.3", + "@actions/github": "^5.1.0", "hosted-git-info": "^5.1.0" }, "devDependencies": {