Skip to content

Warn/report token soon to expire? #20097

@dsyme

Description

@dsyme

A command (gh aw audit) or general workflow logging could warn when PAT tokens are soon to expire?

curl -I -H "Authorization: Bearer <YOUR_PAT>" https://api.github.com/user

gives response header

GitHub-Authentication-Token-Expiration: 2021-10-07 19:07:53 UTC

@pelikhan WDYT?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions