Skip to content

Add a cache for version resolution #30

@zxiiro

Description

@zxiiro

The pin command currently calls the GitHub API for every case of uses: it finds without consideration of if it's already received a result. To make this more efficient and not eat up our ratelimit we should add a cache such that for every version lookup that happens eg actions/checkout@v4 that it resolves it should cache the result so that if the same action version is found again later in the file or across other files it can skip the API call entirely and used the cached response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions