4
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-11-07 13:06:56 +00:00
setup-helm/node_modules/@octokit/auth-token/dist-src/hook.js
github-actions[bot] 84b304dfb7
v3 new release (#87)
add token
2022-07-25 13:23:27 -04:00

6 lines
300 B
JavaScript

import { withAuthorizationPrefix } from "./with-authorization-prefix";
export async function hook(token, request, route, parameters) {
const endpoint = request.endpoint.merge(route, parameters);
endpoint.headers.authorization = withAuthorizationPrefix(token);
return request(endpoint);
}