{"id":15022180,"url":"https://github.com/actions/go-dependency-submission","last_synced_at":"2025-04-06T19:11:24.679Z","repository":{"id":37046321,"uuid":"503437039","full_name":"actions/go-dependency-submission","owner":"actions","description":"Calculates dependencies for a Go build-target and submits the list to the Dependency Submission API","archived":false,"fork":false,"pushed_at":"2025-03-26T15:34:56.000Z","size":1596,"stargazers_count":57,"open_issues_count":3,"forks_count":31,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-04T03:04:00.800Z","etag":null,"topics":["dependencies"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-14T16:25:57.000Z","updated_at":"2025-04-04T02:04:06.000Z","dependencies_parsed_at":"2023-01-04T15:32:47.837Z","dependency_job_id":"a8b292dd-41f1-4643-ae13-a56b113c41c0","html_url":"https://github.com/actions/go-dependency-submission","commit_stats":{"total_commits":42,"total_committers":12,"mean_commits":3.5,"dds":0.6666666666666667,"last_synced_commit":"1694cb96294964b25b39ef4e8fa7430558d9bed9"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fgo-dependency-submission","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fgo-dependency-submission/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fgo-dependency-submission/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fgo-dependency-submission/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions","download_url":"https://codeload.github.com/actions/go-dependency-submission/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247535516,"owners_count":20954576,"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","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":["dependencies"],"created_at":"2024-09-24T19:57:35.261Z","updated_at":"2025-04-06T19:11:24.661Z","avatar_url":"https://github.com/actions.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Go Dependency Submission\n\nThis GitHub Action calculates dependencies for a Go build-target (a Go file with a\n`main` function) and submits the list to the [Dependency submission API](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api). Dependencies then appear in your repository's dependency graph, and you'll receive Dependabot alerts and updates for vulnerable or out-of-date dependencies. \n\n### Running locally\n\nBecause we are checking in the Typescript output, you may see check failures if you don't generate the contents of `dist/` in a similar manner to our CI check. You can easily rectify this by regenerating in a codespace and using what we use in our workflow YAML:\n\n```\nnpm ci --ignore-scripts\nnpm rebuild \u0026\u0026 npm run all\n```\n\n### Example\n```yaml\nname: Go Dependency Submission\non:\n  push:\n    branches:\n      - main\n\n# The API requires write permission on the repository to submit dependencies\npermissions:\n  contents: write\n\n# Environment variables to configure Go and Go modules. Customize as necessary\nenv:\n  GOPROXY: '' # A Go Proxy server to be used\n  GOPRIVATE: '' # A list of modules are considered private and not requested from GOPROXY\n\njobs:\n  go-action-detection:\n    runs-on: ubuntu-latest\n    steps:\n      - name: 'Checkout Repository'\n        uses: actions/checkout@v3\n\n      - uses: actions/setup-go@v3\n        with:\n          go-version: \"\u003e=1.18.0\"\n\n      - name: Run snapshot action\n        uses: actions/go-dependency-submission@v2\n        with:\n            # Required: Define the repo path to the go.mod file used by the\n            # build target\n            go-mod-path: go-example/go.mod\n            #\n            # Optional: Define the path of a build target (a file with a\n            # `main()` function) If not defined, this Action will collect all\n            # dependencies used by all build targets for the module, which may\n            # include Go dependencies used by tests and tooling.\n            go-build-target: go-example/cmd/octocat.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions%2Fgo-dependency-submission","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions%2Fgo-dependency-submission","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions%2Fgo-dependency-submission/lists"}