Fix dependabot errors

I explicitly had to downgrade "@octokit/plugin-retry" to "^6.0.0". Other
dependencies were upgraded.
This commit is contained in:
Andrew Eisenberg 2025-03-14 13:13:56 -07:00
parent f338ec87a3
commit 5f98c40063
1536 changed files with 52911 additions and 424849 deletions

View file

@ -205,9 +205,7 @@ const TOKEN = "ghp_PersonalAccessToken01245678900000000";
const auth = createTokenAuth(TOKEN);
const authentication = await auth();
const response = await request("HEAD /", {
headers: authentication.headers,
});
const response = await request("HEAD /");
const scopes = response.headers["x-oauth-scopes"].split(/,\s+/);
if (scopes.length) {
@ -227,9 +225,7 @@ const TOKEN = "ghp_PersonalAccessToken01245678900000000";
const auth = createTokenAuth(TOKEN);
const authentication = await auth();
const response = await request("HEAD /", {
headers: authentication.headers,
});
const response = await request("HEAD /");
const clientId = response.headers["x-oauth-client-id"];
if (clientId) {
@ -252,12 +248,11 @@ const auth = createTokenAuth(TOKEN);
const authentication = await auth();
const response = await request("GET /repos/{owner}/{repo}", {
owner: 'octocat',
repo: 'hello-world'
headers: authentication.headers
owner: "octocat",
repo: "hello-world",
});
console.log(response.data.permissions)
console.log(response.data.permissions);
// {
// admin: true,
// push: true,