Skip to content

Commit

Permalink
github: fix jwt-decode import
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Oct 28, 2023
1 parent a625c74 commit 3262181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {GitHub as Octokit} from '@actions/github/lib/utils';
import * as core from '@actions/core';
import * as github from '@actions/github';
import {Context} from '@actions/github/lib/context';
import jwt_decode from 'jwt-decode';
import {jwtDecode} from 'jwt-decode';

import {GitHubActionsRuntimeToken, GitHubActionsRuntimeTokenAC, GitHubRepo} from './types/github';

Expand Down Expand Up @@ -51,7 +51,7 @@ export class GitHub {

static get actionsRuntimeToken(): GitHubActionsRuntimeToken | undefined {
const token = process.env['ACTIONS_RUNTIME_TOKEN'] || '';
return token ? jwt_decode<GitHubActionsRuntimeToken>(token) : undefined;
return token ? jwtDecode<GitHubActionsRuntimeToken>(token) : undefined;
}

public static async printActionsRuntimeTokenACs() {
Expand Down

0 comments on commit 3262181

Please sign in to comment.