diff --git a/package.json b/package.json index 6d42dbb..065474a 100644 --- a/package.json +++ b/package.json @@ -34,16 +34,16 @@ "update": "npm_config_yes=true npx npm-check-updates -u --timeout 100000 && yarn install && yarn upgrade && yarn audit" }, "dependencies": { - "@actions/github": "^4.0.0", + "@actions/github": "^5.0.0", "@octokit/plugin-rest-endpoint-methods": "^5.1.1", - "@technote-space/github-action-helper": "^5.2.8", + "@technote-space/github-action-helper": "^5.2.9", "js-yaml": "^4.1.0" }, "devDependencies": { - "@technote-space/github-action-test-helper": "^0.7.10", + "@technote-space/github-action-test-helper": "^0.7.12", "@types/jest": "^26.0.23", "@types/js-yaml": "^4.0.1", - "@types/node": "^15.0.3", + "@types/node": "^15.3.0", "@typescript-eslint/eslint-plugin": "^4.23.0", "@typescript-eslint/parser": "^4.23.0", "eslint": "^7.26.0", diff --git a/src/utils.ts b/src/utils.ts index 4287b77..28c2373 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -22,7 +22,7 @@ export const getConfig = async(fileName: string, octokit: Octokit, context: Cont params.ref = ref; } - return parseConfig((await octokit.repos.getContent(params)).data['content']); + return parseConfig((await octokit.rest.repos.getContent(params)).data['content']); } catch (error) { if (error.status && NOT_FOUND_STATUS === error.status) { return false; diff --git a/yarn.lock b/yarn.lock index 2dc05da..3331d99 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,17 +7,17 @@ resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.7.tgz#594f8c45b213f0146e4be7eda8ae5cf4e198e5ab" integrity sha512-kzLFD5BgEvq6ubcxdgPbRKGD2Qrgya/5j+wh4LZzqT915I0V3rED+MvjH6NXghbvk1MXknpNNQ3uKjXSEN00Ig== -"@actions/github@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@actions/github/-/github-4.0.0.tgz#d520483151a2bf5d2dc9cd0f20f9ac3a2e458816" - integrity sha512-Ej/Y2E+VV6sR9X7pWL5F3VgEWrABaT292DRqRU6R4hnQjPtC/zD3nagxVdXWiRQvYDh8kHXo7IDmG42eJ/dOMA== +"@actions/github@^5.0.0": + version "5.0.0" + resolved "https://registry.yarnpkg.com/@actions/github/-/github-5.0.0.tgz#1754127976c50bd88b2e905f10d204d76d1472f8" + integrity sha512-QvE9eAAfEsS+yOOk0cylLBIO/d6WyWIOvsxxzdrPFaud39G6BOkUwScXZn1iBzQzHyu9SBkkLSWlohDWdsasAQ== dependencies: - "@actions/http-client" "^1.0.8" - "@octokit/core" "^3.0.0" - "@octokit/plugin-paginate-rest" "^2.2.3" - "@octokit/plugin-rest-endpoint-methods" "^4.0.0" + "@actions/http-client" "^1.0.11" + "@octokit/core" "^3.4.0" + "@octokit/plugin-paginate-rest" "^2.13.3" + "@octokit/plugin-rest-endpoint-methods" "^5.1.1" -"@actions/http-client@^1.0.8": +"@actions/http-client@^1.0.11": version "1.0.11" resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0" integrity sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg== @@ -554,7 +554,7 @@ dependencies: "@octokit/types" "^6.0.3" -"@octokit/core@^3.0.0": +"@octokit/core@^3.4.0": version "3.4.0" resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.4.0.tgz#b48aa27d755b339fe7550548b340dcc2b513b742" integrity sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg== @@ -590,21 +590,13 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-7.0.0.tgz#0f6992db9854af15eca77d71ab0ec7fad2f20411" integrity sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw== -"@octokit/plugin-paginate-rest@^2.2.3": +"@octokit/plugin-paginate-rest@^2.13.3": version "2.13.3" resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.3.tgz#f0f1792230805108762d87906fb02d573b9e070a" integrity sha512-46lptzM9lTeSmIBt/sVP/FLSTPGx6DCzAdSX3PfeJ3mTf4h9sGC26WpaQzMEq/Z44cOcmx8VsOhO+uEgE3cjYg== dependencies: "@octokit/types" "^6.11.0" -"@octokit/plugin-rest-endpoint-methods@^4.0.0": - version "4.15.1" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.15.1.tgz#91a064bee99d0ffcef74a04357e1cf15c27d1cd0" - integrity sha512-4gQg4ySoW7ktKB0Mf38fHzcSffVZd6mT5deJQtpqkuPuAqzlED5AJTeW8Uk7dPRn7KaOlWcXB0MedTFJU1j4qA== - dependencies: - "@octokit/types" "^6.13.0" - deprecation "^2.3.1" - "@octokit/plugin-rest-endpoint-methods@^5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.1.1.tgz#1720de3511944ebcca5c391ea82605e13e8f95eb" @@ -634,7 +626,7 @@ node-fetch "^2.6.1" universal-user-agent "^6.0.0" -"@octokit/types@^6.0.3", "@octokit/types@^6.11.0", "@octokit/types@^6.13.0", "@octokit/types@^6.14.1", "@octokit/types@^6.7.1": +"@octokit/types@^6.0.3", "@octokit/types@^6.11.0", "@octokit/types@^6.14.1", "@octokit/types@^6.7.1": version "6.14.2" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.14.2.tgz#64c9457f38fb8522bdbba3c8cc814590a2d61bf5" integrity sha512-wiQtW9ZSy4OvgQ09iQOdyXYNN60GqjCL/UdMsepDr1Gr0QzpW6irIKbH3REuAHXAhxkEk9/F2a3Gcs1P6kW5jA== @@ -655,34 +647,34 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@technote-space/github-action-helper@^5.2.8": - version "5.2.8" - resolved "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.2.8.tgz#e12efa099437b134512db259fc3e76d85f5693c2" - integrity sha512-VK7s/fyrk1PVCZ2P2mNPPYJOhdwYjlaUwU3sdX6AtOACP//RgwfVElTtCJ3MkbRUwqPi2ANUGqMgyBo13nthsA== +"@technote-space/github-action-helper@^5.2.9": + version "5.2.9" + resolved "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.2.9.tgz#a8d53f720cdb482b0f3cff0979b75680ebc13619" + integrity sha512-d/dhhS+q/WMl1FIfbBAKwRRPuQ8bbo3uwnXA///qIB26Vcigd1WGYr9nFaVemKaFNokofzFBcCzczLnpU1iVrQ== dependencies: "@actions/core" "^1.2.7" - "@actions/github" "^4.0.0" + "@actions/github" "^5.0.0" "@octokit/openapi-types" "^7.0.0" "@octokit/plugin-rest-endpoint-methods" "^5.1.1" - "@technote-space/github-action-log-helper" "^0.1.24" + "@technote-space/github-action-log-helper" "^0.1.25" shell-escape "^0.2.0" sprintf-js "^1.1.2" -"@technote-space/github-action-log-helper@^0.1.24": - version "0.1.24" - resolved "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.24.tgz#ee62eff52e1500be79e6f63b64f1cb64139a647f" - integrity sha512-ktBnLNAkBTZKXmxsfwUOGgRmM2dJ2/kLsac6d06fO0ihrALFYnulZbnLMLj7BdE+oFNXPchvIc7i1Tb4dqdMIg== +"@technote-space/github-action-log-helper@^0.1.25": + version "0.1.25" + resolved "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.25.tgz#60e5165c116b4c7c42b63455199e8bb38566f9b0" + integrity sha512-NT/CbRAJnwLsvBnuf0ao8zU9dpfs84q4QEF6kuSjYjYN0WeUSvDbcNKgEVyTJ0uAmyuyy6uNe4lgvnnE3Mb++w== dependencies: "@actions/core" "^1.2.7" sprintf-js "^1.1.2" -"@technote-space/github-action-test-helper@^0.7.10": - version "0.7.10" - resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.7.10.tgz#7aa12704d1286fb0891ea77e2d4905e7522d11e7" - integrity sha512-HnaVmKOebLXw/b1R3fkDplXv1jlpM4jYyHOsJ4ibOyzeNqlSpJsldRMVLjkz8hkBKKcEI65MEdKBs9IMKuOeGA== +"@technote-space/github-action-test-helper@^0.7.12": + version "0.7.12" + resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.7.12.tgz#cc0fea4ff9fb59356373d3a84f8767492a7275e5" + integrity sha512-8wckFKdQn9abG71pkaRcaqb0tvkS6avb2z04qwYq9u+S5DpQBhKMxekSC887nM+rtkwYhRvVLZv+3qnSng7kSQ== dependencies: "@actions/core" "^1.2.7" - "@actions/github" "^4.0.0" + "@actions/github" "^5.0.0" "@octokit/plugin-rest-endpoint-methods" "^5.1.1" js-yaml "^4.1.0" @@ -763,10 +755,10 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== -"@types/node@*", "@types/node@^15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.0.3.tgz#ee09fcaac513576474c327da5818d421b98db88a" - integrity sha512-/WbxFeBU+0F79z9RdEOXH4CsDga+ibi5M8uEYr91u3CkT/pdWcV8MCook+4wDPnZBexRdwWS+PiVZ2xJviAzcQ== +"@types/node@*", "@types/node@^15.3.0": + version "15.3.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-15.3.0.tgz#d6fed7d6bc6854306da3dea1af9f874b00783e26" + integrity sha512-8/bnjSZD86ZfpBsDlCIkNXIvm+h6wi9g7IqL+kmFkQ+Wvu3JrasgLElfiPgoo8V8vVfnEi0QVS12gbl94h9YsQ== "@types/normalize-package-data@^2.4.0": version "2.4.0" @@ -909,9 +901,9 @@ ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4: uri-js "^4.2.2" ajv@^8.0.1: - version "8.3.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.3.0.tgz#25ee7348e32cdc4a1dbb38256bf6bdc451dd577c" - integrity sha512-RYE7B5An83d7eWnDR8kbdaIFqmKCNsP16ay1hDbJEU+sa0e3H9SebskCt0Uufem6cfAVu7Col6ubcn/W+Sm8/Q== + version "8.4.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.4.0.tgz#48984fdb2ce225cab15795f0772a8d85669075e4" + integrity sha512-7QD2l6+KBSLwf+7MuYocbWvRPdOu63/trReTLu2KFwkgctnub1auoF+Y1WYcm09CTM7quuscrzqmASaLHC/K4Q== dependencies: fast-deep-equal "^3.1.1" json-schema-traverse "^1.0.0" @@ -1549,9 +1541,9 @@ ecc-jsbn@~0.1.1: safer-buffer "^2.1.0" electron-to-chromium@^1.3.723: - version "1.3.727" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.727.tgz#857e310ca00f0b75da4e1db6ff0e073cc4a91ddf" - integrity sha512-Mfz4FIB4FSvEwBpDfdipRIrwd6uo8gUDoRDF4QEYb4h4tSuI3ov594OrjU6on042UlFHouIJpClDODGkPcBSbg== + version "1.3.728" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.728.tgz#dbedd6373f595ae10a13d146b66bece4c1afa5bd" + integrity sha512-SHv4ziXruBpb1Nz4aTuqEHBYi/9GNCJMYIJgDEXrp/2V01nFXMNFUTli5Z85f5ivSkioLilQatqBYFB44wNJrA== emittery@^0.7.1: version "0.7.2"