cda91bf2b9
Undici has added native support for proxy handling, so it is no longer necessary for us to have our own custom proxy handling. Reverts #102 and resolves #134.
12 lines
397 B
JavaScript
12 lines
397 B
JavaScript
import core from "@actions/core";
|
|
import { request } from "@octokit/request";
|
|
|
|
// Get the GitHub API URL from the action input and remove any trailing slash
|
|
const baseUrl = core.getInput("github-api-url").replace(/\/$/, "");
|
|
|
|
// Configure the default settings for GitHub API requests
|
|
export default request.defaults({
|
|
headers: { "user-agent": "actions/create-github-app-token" },
|
|
baseUrl,
|
|
});
|