From 71e7bf9a9fc0867da1f560cf98ba4a8ad90ab098 Mon Sep 17 00:00:00 2001
From: Olivier Lamothe <olamothe@coveo.com>
Date: Fri, 25 Jun 2021 11:34:37 -0400
Subject: [PATCH] Revert "fix(J:CDX-227): bump @actions/github from 4.0.0 to
 5.0.0 (#294)"

This reverts commit 9ffbafb5a83214dd58a7c7b26700c4fb342748e3.
---
 package-lock.json | 123 ++++++++++++----------------------------------
 package.json      |   2 +-
 2 files changed, 32 insertions(+), 93 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 80cb746308..e66215f8d9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,102 +11,58 @@
       "dev": true
     },
     "@actions/github": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.0.0.tgz",
-      "integrity": "sha512-QvE9eAAfEsS+yOOk0cylLBIO/d6WyWIOvsxxzdrPFaud39G6BOkUwScXZn1iBzQzHyu9SBkkLSWlohDWdsasAQ==",
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/@actions/github/-/github-4.0.0.tgz",
+      "integrity": "sha512-Ej/Y2E+VV6sR9X7pWL5F3VgEWrABaT292DRqRU6R4hnQjPtC/zD3nagxVdXWiRQvYDh8kHXo7IDmG42eJ/dOMA==",
       "dev": true,
       "requires": {
-        "@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",
+        "@octokit/core": "^3.0.0",
+        "@octokit/plugin-paginate-rest": "^2.2.3",
+        "@octokit/plugin-rest-endpoint-methods": "^4.0.0"
       },
       "dependencies": {
-        "@octokit/core": {
-          "version": "3.5.1",
-          "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.5.1.tgz",
-          "integrity": "sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==",
+        "@octokit/openapi-types": {
+          "version": "3.3.0",
+          "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-3.3.0.tgz",
+          "integrity": "sha512-s3dd32gagPmKaSLNJ9aPNok7U+tl69YLESf6DgQz5Ml/iipPZtif3GLvWpNXoA6qspFm1LFUZX+C3SqWX/Y/TQ==",
+          "dev": true
+        },
+        "@octokit/plugin-paginate-rest": {
+          "version": "2.9.0",
+          "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.9.0.tgz",
+          "integrity": "sha512-XxbOg45r2n/2QpU6hnGDxQNDRrJ7gjYpMXeDbUCigWTHECmjoyFLizkFO2jMEtidMkfiELn7AF8GBAJ/cbPTnA==",
           "dev": true,
           "requires": {
-            "@octokit/auth-token": "^2.4.4",
-            "@octokit/graphql": "^4.5.8",
-            "@octokit/request": "^5.6.0",
-            "@octokit/request-error": "^2.0.5",
-            "@octokit/types": "^6.0.3",
-            "before-after-hook": "^2.2.0",
-            "universal-user-agent": "^6.0.0"
+            "@octokit/types": "^6.6.0"
           }
         },
-        "@octokit/openapi-types": {
-          "version": "7.3.3",
-          "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.3.3.tgz",
-          "integrity": "sha512-/tpvcWCjYUHtvdc/t/bX6pxaOoeYPhfPCyvUaSWP29YkRcdZmlhRaMsXudZhvXm8GBPBxmCOsf1Ye/FpkszOHw==",
-          "dev": true
-        },
         "@octokit/plugin-rest-endpoint-methods": {
-          "version": "5.3.2",
-          "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.3.2.tgz",
-          "integrity": "sha512-vwsdLUC4TUohbHAqD0f/BjUw/kfKmNs1f0+Fkldzr7GKqMXjNku5U0jzZCmVUI6GcH7b/KcXd9WtbpVpofDehQ==",
+          "version": "4.9.0",
+          "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.9.0.tgz",
+          "integrity": "sha512-EAr2epvY8JfXSi/cdMsyyfBctdKkolDH7xSgu3MKBqPRm0WfQ2QvI050jz61XZXoVK3ZgrhdMCyd1GgOFz7CSw==",
           "dev": true,
           "requires": {
-            "@octokit/types": "^6.16.5",
+            "@octokit/types": "^6.6.0",
             "deprecation": "^2.3.1"
-          },
-          "dependencies": {
-            "@octokit/types": {
-              "version": "6.16.5",
-              "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.16.5.tgz",
-              "integrity": "sha512-2v30UzgezzVZNCZlEryr8ujqaFW0EEH0fyuNxz5QdE3rlkCG2SXz8RTCT1V4q7inEI2kd2xTcROlq9OkEvY0TQ==",
-              "dev": true,
-              "requires": {
-                "@octokit/openapi-types": "^7.3.3"
-              }
-            }
           }
         },
-        "@octokit/request": {
-          "version": "5.6.0",
-          "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.0.tgz",
-          "integrity": "sha512-4cPp/N+NqmaGQwbh3vUsYqokQIzt7VjsgTYVXiwpUP2pxd5YiZB2XuTedbb0SPtv9XS7nzAKjAuQxmY8/aZkiA==",
+        "@octokit/types": {
+          "version": "6.6.0",
+          "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.6.0.tgz",
+          "integrity": "sha512-nmFoU3HCbw1AmnZU/eto2VvzV06+N7oAqXwMmAHGlNDF+KFykksh/VlAl85xc1P5T7Mw8fKYvXNaImNHCCH/rg==",
           "dev": true,
           "requires": {
-            "@octokit/endpoint": "^6.0.1",
-            "@octokit/request-error": "^2.1.0",
-            "@octokit/types": "^6.16.1",
-            "is-plain-object": "^5.0.0",
-            "node-fetch": "^2.6.1",
-            "universal-user-agent": "^6.0.0"
-          },
-          "dependencies": {
-            "@octokit/types": {
-              "version": "6.16.5",
-              "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.16.5.tgz",
-              "integrity": "sha512-2v30UzgezzVZNCZlEryr8ujqaFW0EEH0fyuNxz5QdE3rlkCG2SXz8RTCT1V4q7inEI2kd2xTcROlq9OkEvY0TQ==",
-              "dev": true,
-              "requires": {
-                "@octokit/openapi-types": "^7.3.3"
-              }
-            }
+            "@octokit/openapi-types": "^3.3.0",
+            "@types/node": ">= 8"
           }
-        },
-        "before-after-hook": {
-          "version": "2.2.2",
-          "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz",
-          "integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==",
-          "dev": true
-        },
-        "is-plain-object": {
-          "version": "5.0.0",
-          "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
-          "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
-          "dev": true
         }
       }
     },
     "@actions/http-client": {
-      "version": "1.0.11",
-      "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
-      "integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
+      "version": "1.0.9",
+      "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.9.tgz",
+      "integrity": "sha512-0O4SsJ7q+MK0ycvXPl2e6bMXV7dxAXOGjrXS1eTF9s2S401Tp6c/P3c3Joz04QefC1J6Gt942Wl2jbm3f4mLcg==",
       "dev": true,
       "requires": {
         "tunnel": "0.0.6"
@@ -2527,17 +2483,6 @@
         }
       }
     },
-    "@octokit/request-error": {
-      "version": "2.1.0",
-      "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz",
-      "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==",
-      "dev": true,
-      "requires": {
-        "@octokit/types": "^6.0.3",
-        "deprecation": "^2.0.0",
-        "once": "^1.4.0"
-      }
-    },
     "@octokit/rest": {
       "version": "18.5.2",
       "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.5.2.tgz",
@@ -9860,12 +9805,6 @@
         "crypto-random-string": "^2.0.0"
       }
     },
-    "universal-user-agent": {
-      "version": "6.0.0",
-      "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
-      "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==",
-      "dev": true
-    },
     "universalify": {
       "version": "0.1.2",
       "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
diff --git a/package.json b/package.json
index d4a3badb2e..e5543ac1a0 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
   "dependencies": {},
   "devDependencies": {
     "@actions/core": "^1.2.7",
-    "@actions/github": "^5.0.0",
+    "@actions/github": "^4.0.0",
     "@commitlint/config-conventional": "^12.1.4",
     "@commitlint/config-lerna-scopes": "^12.1.4",
     "@commitlint/lint": "^12.1.4",
