Support tag and commit ID verification.

Open
#35 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
git, github, go
Domain
cli, security

Research direction

Start by tracing the fetch command's handling of repository tags and commits, then read the checksum validation added in issue #34. The work is complete when fetch accepts both --tag and --commit-id and rejects the request when the tag does not resolve to that commit.

Written by the indexing model from the issue text.

Description

enhancement

In #34, we added the ability to validate a release asset by its checksum. But what to do about files downloaded straight from the repo? It seems the best we can do here is to validate the commit itself versus individual files, so one possibility is that fetch could be updated so that you can pass in both --tag and --commit-id and if the two don't match, fetch will fail. This will inoculate users against git tags whose associated git commit has been changed.

Dominant language
Go
Stars
625
Forks
92
Avg merge
12h 56m
Merged PRs (30d)
2

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gruntwork-io/fetch

All issues in gruntwork-io/fetch

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.