{"id":15330666,"url":"https://github.com/shoothzj/go-mod-check-action","last_synced_at":"2025-08-29T23:32:20.799Z","repository":{"id":233909654,"uuid":"624393111","full_name":"shoothzj/go-mod-check-action","owner":"shoothzj","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-12T07:29:12.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-14T03:56:08.805Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shoothzj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-06T11:18:35.000Z","updated_at":"2024-11-12T07:28:55.000Z","dependencies_parsed_at":"2024-04-17T17:13:15.164Z","dependency_job_id":"d620d67f-eb20-491b-bea1-349922d3a249","html_url":"https://github.com/shoothzj/go-mod-check-action","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"0b2c97c00bc3823c6ddb6817159bc42248ac40ff"},"previous_names":["shoothzj/go-mod-check-action"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoothzj%2Fgo-mod-check-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoothzj%2Fgo-mod-check-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoothzj%2Fgo-mod-check-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoothzj%2Fgo-mod-check-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoothzj","download_url":"https://codeload.github.com/shoothzj/go-mod-check-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231423590,"owners_count":18374544,"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":[],"created_at":"2024-10-01T09:53:52.548Z","updated_at":"2024-12-27T01:10:18.450Z","avatar_url":"https://github.com/shoothzj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-mod-check-action\n\nThis GitHub Action checks if your `go.mod` and `go.sum` files are properly updated and optionally prevents indirect\ndependency updates.\n\n## Requirements\n\n- Go 1.17+\n\n## Features\n\n1. Runs `go mod tidy` to check if `go.mod` and `go.sum` files have any changes. If there are changes, the action fails.\n2. If `prohibitIndirectDepUpdate` is set to `true`, the action will first remove indirect dependency blocks (excluding\n   replace blocks) from `go.mod`, then run `go mod tidy`, and check if the `go.mod` and `go.sum` files have any changes\n   compared to the initial state. If there are changes, the action fails.\n\n## Usage\n\nTo use this action in your project, follow these steps:\n\n1. Add a new workflow file or edit an existing one in your project's `.github/workflows` directory. For example, create\n   or edit `.github/workflows/go-mod-check.yml`.\n2. Add the following content to the file:\n\n```yaml\nname: Go Mod Check\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n    branches:\n      - main\n\njobs:\n  go-mod-check:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Check out code\n        uses: actions/checkout@v2\n      - name: Run Go Mod Check Action\n        uses: Shoothzj/go-mod-check-action@main\n        with:\n          prohibitIndirectDepUpdate: 'true'\n```\n\nNow, the `go-mod-check-action` will run on every push/pr to your project, ensuring that the `go.mod` and `go.sum` files\nare properly updated and preventing indirect dependency updates if required.\n\n## Configuration\n\nYou can configure the action using the following input parameters:\n\n| **Parameter**               | **Description**                                                         | **Required** | **Default** |\n|-----------------------------|-------------------------------------------------------------------------|--------------|-------------|\n| `prohibitIndirectDepUpdate` | If set to `true`, the action will prohibit indirect dependency updates. | No           | `false`     |\n\n## License\n\nThis project is licensed under the [Apache 2.0 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoothzj%2Fgo-mod-check-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshoothzj%2Fgo-mod-check-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoothzj%2Fgo-mod-check-action/lists"}