| ▲ | antonvs 4 hours ago | ||||||||||||||||
FTA: > “For example, there is no guarantee that the code displayed at https://github.com/example/mod/blob/v1.2.3/exp.go is the actual contents of exp.go from v1.2.3 of module github.com/example/mod: GitHub allows force-pushing git tags and even built its recommended GitHub Actions workflows on top of mutable tags.” In a sense this is a git issue: the fact that git is mutable instead of append-only. Git wasn’t designed to serve as part of a code integrity system - you’d have to add that at some other level, such as Github. Or in the case of this example, recognize that tags can’t be secured and implement everything in terms of commit hashes, etc. | |||||||||||||||||
| ▲ | embedding-shape 3 hours ago | parent | next [-] | ||||||||||||||||
> the fact that git is mutable instead of append-only Remind me again how I change a commit in the middle of a branch without affecting the commits that come later in the same branch? | |||||||||||||||||
| |||||||||||||||||
| ▲ | LtWorf 3 hours ago | parent | prev [-] | ||||||||||||||||
> implement everything in terms of commit hashes And remember, git uses a vulnerable algorithm :) | |||||||||||||||||