Skip to content

Tag SHA issues #1528

@henryiii

Description

@henryiii

Description

Hi,

After the recent litellm security breach involving force pushed tags, I've been trying to pin down CI in repos to SHA hashes. One key issue with that is that GitHub will resolve a hash to any fork, so I'm also making sure the human readable tag comments and SHAs match. This is an issue with this repo only, though: if I go to the release, I get that v1.44.0 resolves to 631208b. But if I ask for that from git, using git ls-remote --tags https://github.com/crate-ci/typos v1.44.0, I get a8d8e187146634c459c27ade2d3e338569378720 instead. Do you know why that is happening? That's not showing up as a valid SHA on the GH interface at all.

A previous issue I've also seen is that pre-commit.ci picks up the v1 tag instead of the specific tag, like v1.44.0 tag on every bump, causing it to do things like v1.43.0 -> v1 (moving tags are not supported by pre-commit, since it caches globally based on the rev). You can make v1 a branch instead of a tag, since it's being moved every release, perhaps?

Thanks for taking a look! (This is for pypa/packaging#1133, though I'll probably be doing it other places too)

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: New; needs maintainer attention.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions