replace direct octokit deps with @actions/github types

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2026-01-28 16:29:31 +01:00
parent 2806b0ceaf
commit 537174131a
5 changed files with 30 additions and 33 deletions

View File

@@ -16,7 +16,7 @@
import * as core from '@actions/core';
import {AnnotationProperties} from '@actions/core';
import {components as OctoOpenApiTypes} from '@octokit/openapi-types';
import type {getOctokit} from '@actions/github';
import {JwtPayload} from 'jwt-decode';
import {BakeDefinition} from './buildx/bake.js';
@@ -39,7 +39,8 @@ export interface GitHubContentOpts {
path: string;
}
export type GitHubRepo = OctoOpenApiTypes['schemas']['repository'];
type Octokit = ReturnType<typeof getOctokit>;
export type GitHubRepo = Awaited<ReturnType<Octokit['rest']['repos']['get']>>['data'];
export interface GitHubActionsRuntimeToken extends JwtPayload {
ac?: string;