2
0
Fork 0
mirror of https://code.forgejo.org/docker/build-push-action.git synced 2025-07-24 16:48:30 +00:00

log GitHub Actions runtime token access controls

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-01-12 19:44:15 +01:00
parent c40bf0fdf6
commit f9ccca010f
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
7 changed files with 55 additions and 5 deletions

9
src/github.ts Normal file
View file

@ -0,0 +1,9 @@
import jwt_decode, {JwtPayload} from 'jwt-decode';
interface Jwt extends JwtPayload {
ac?: string;
}
export const parseRuntimeToken = (token: string): Jwt => {
return jwt_decode<Jwt>(token);
};