{"id":18454338,"url":"https://github.com/1password/dep-report","last_synced_at":"2025-09-05T21:45:33.760Z","repository":{"id":39166165,"uuid":"156436078","full_name":"1Password/dep-report","owner":"1Password","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-12T09:16:19.000Z","size":2050,"stargazers_count":8,"open_issues_count":2,"forks_count":6,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-29T03:15:49.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1Password.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-06T19:25:36.000Z","updated_at":"2025-02-21T07:20:51.000Z","dependencies_parsed_at":"2024-06-19T05:31:17.440Z","dependency_job_id":"325ff815-882c-4530-b997-0ca405468c19","html_url":"https://github.com/1Password/dep-report","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/1Password/dep-report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fdep-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fdep-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fdep-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fdep-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1Password","download_url":"https://codeload.github.com/1Password/dep-report/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fdep-report/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273826904,"owners_count":25175235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T08:03:52.224Z","updated_at":"2025-09-05T21:45:33.710Z","avatar_url":"https://github.com/1Password.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dep-report\n\n`dep-report` is a custom written tool used to report on the golang dependencies in an application.\n\nIt functions by reading the application `go.mod` file, and then interacting with the remote repositories for each dependency in order to build a report with entries formatted like:\n\n```\n    {\n      \"name\": \"github.com/DataDog/datadog-go\",\n      \"source\": \"github\",\n      \"License\": \"MIT\",\n      \"website\": \"https://api.github.com/repos/DataDog/datadog-go\",\n      \"installed\": {\n        \"version\": \"1.4.1\",\n        \"time\": \"2021-05-05T11:24:08Z\",\n        \"commit\": \"fbbbcbc72f95c23c28bbfe2bf008a9958db049a2\"\n      },\n      \"latest\": {\n        \"version\": \"v5.1.1\",\n        \"time\": \"2022-05-05T16:04:48Z\",\n        \"commit\": \"553de96e699a42be8b401607fbbbce81d4942790\"\n      }\n    }\n```\n\n## Running the Tool\n\n* In order to run the tool, you must first setup a [Github Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)\n* To verify the PAT is configured correctly, you can test out running the tool against it's own deps:\n```\nGITHUB_OAUTH_TOKEN=\u003cyour token\u003e go run main.go\n```\n* If this works, then install the tool globally via `go install .`\n* This tool must be run in the root directory of the application to be reported on (i.e. in the same location as `go.mod`)\n```\n\u003e cd my/go/app\n\u003e GITHUB_OAUTH_TOKEN=\u003cyour token\u003e dep-report\n```\n\n## Troubleshooting\n\n### `Unable to determine repo source for...`\n\nThis is the most common issue encountered with this tool. \n\nThe code for the tool relies on a [mapping for particular dependency repo sources](https://github.com/1Password/dep-report/blob/master/versioncontrol/maps.go). \n\nWhile this is not ideal, it is relatively easy to fix.\n\nFor example, a recent failure reported the following issue:\n\n```\nunable to generate report: failed to create report object from dependency: { v1.26.0 google.golang.org/protobuf}: unable to determine repo source for google.golang org/protobuf\n```\n\nAnd the fix required was simply to add a mapping for the `google.golang.org/protobuf` dependency to it's source repo on github: `https://github.com/golang/protobuf`\n\n```\n\t\"google.golang.org/protobuf\":      \"https://github.com/golang/protobuf\",\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fdep-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1password%2Fdep-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fdep-report/lists"}