From 08fdc050d7d9f051d2331f89bbac3ff94b5e5b29 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 11:37:25 +0200 Subject: [PATCH] build(deps): bump @actions/github from 5.0.3 to 5.1.0 (#571) Co-authored-by: Fernandez Ludovic --- dist/post_run/index.js | 5 +++-- dist/run/index.js | 5 +++-- package-lock.json | 14 +++++++------- package.json | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 3a524d2..60e5082 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -3744,8 +3744,9 @@ exports.context = new Context.Context(); * @param token the repo PAT or GITHUB_TOKEN * @param options other options to set */ -function getOctokit(token, options) { - return new utils_1.GitHub(utils_1.getOctokitOptions(token, options)); +function getOctokit(token, options, ...additionalPlugins) { + const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins); + return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options)); } exports.getOctokit = getOctokit; //# sourceMappingURL=github.js.map diff --git a/dist/run/index.js b/dist/run/index.js index 37d4ef8..b403f66 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -3744,8 +3744,9 @@ exports.context = new Context.Context(); * @param token the repo PAT or GITHUB_TOKEN * @param options other options to set */ -function getOctokit(token, options) { - return new utils_1.GitHub(utils_1.getOctokitOptions(token, options)); +function getOctokit(token, options, ...additionalPlugins) { + const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins); + return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options)); } exports.getOctokit = getOctokit; //# sourceMappingURL=github.js.map diff --git a/package-lock.json b/package-lock.json index efc4171..093a0e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@actions/cache": "^3.0.3", "@actions/core": "^1.9.1", "@actions/exec": "^1.1.1", - "@actions/github": "^5.0.3", + "@actions/github": "^5.1.0", "@actions/http-client": "^2.0.1", "@actions/tool-cache": "^2.0.1", "@types/semver": "^7.3.12", @@ -74,9 +74,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", @@ -3251,9 +3251,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 af9b835..7b59ea1 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@actions/cache": "^3.0.3", "@actions/core": "^1.9.1", "@actions/exec": "^1.1.1", - "@actions/github": "^5.0.3", + "@actions/github": "^5.1.0", "@actions/http-client": "^2.0.1", "@actions/tool-cache": "^2.0.1", "@types/semver": "^7.3.12",