{"id":36604437,"url":"https://github.com/reugn/github-ci","last_synced_at":"2026-01-12T08:42:20.275Z","repository":{"id":330186017,"uuid":"1121854315","full_name":"reugn/github-ci","owner":"reugn","description":"A CLI tool for managing GitHub Actions workflows","archived":false,"fork":false,"pushed_at":"2026-01-03T12:18:24.000Z","size":137,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-06T12:29:54.107Z","etag":null,"topics":["auto-fix","automation","ci","ci-cd","ci-security","cicd","cli","cli-tool","command-line","developer-tools","devsecops","github-actions","github-actions-security","linter","policy-enforcement","static-analysis","workflow-linter"],"latest_commit_sha":null,"homepage":"https://reugn.github.io/github-ci/","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/reugn.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-23T17:01:15.000Z","updated_at":"2026-01-05T16:33:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/reugn/github-ci","commit_stats":null,"previous_names":["reugn/github-ci"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reugn/github-ci","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Fgithub-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Fgithub-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Fgithub-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Fgithub-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reugn","download_url":"https://codeload.github.com/reugn/github-ci/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Fgithub-ci/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["auto-fix","automation","ci","ci-cd","ci-security","cicd","cli","cli-tool","command-line","developer-tools","devsecops","github-actions","github-actions-security","linter","policy-enforcement","static-analysis","workflow-linter"],"created_at":"2026-01-12T08:42:19.693Z","updated_at":"2026-01-12T08:42:20.271Z","avatar_url":"https://github.com/reugn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-ci\n\n[![Build](https://github.com/reugn/github-ci/actions/workflows/build.yml/badge.svg)](https://github.com/reugn/github-ci/actions/workflows/build.yml)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/reugn/github-ci)](https://pkg.go.dev/github.com/reugn/github-ci)\n[![Go Report Card](https://goreportcard.com/badge/github.com/reugn/github-ci)](https://goreportcard.com/report/github.com/reugn/github-ci)\n[![codecov](https://codecov.io/gh/reugn/github-ci/graph/badge.svg?token=CTG5JY369G)](https://codecov.io/gh/reugn/github-ci)\n\nA CLI tool for managing GitHub Actions workflows. It helps lint workflows for best practices and automatically upgrade actions to their latest versions.\n\n## Documentation\n\n- [Index](https://reugn.github.io/github-ci/)\n- [Installation](https://reugn.github.io/github-ci/install)\n- [Usage Guide](https://reugn.github.io/github-ci/usage/)\n- [Configuration](https://reugn.github.io/github-ci/configuration/)\n- [Linters Reference](https://reugn.github.io/github-ci/linters/)\n\n## Features\n\n- **Lint Workflows**: Check workflows for best practices with multiple configurable linters:\n  - **permissions**: Missing permissions configuration\n  - **versions**: Actions using version tags instead of commit hashes\n  - **format**: Formatting issues (indentation, line length, trailing whitespace)\n  - **secrets**: Hardcoded secrets and sensitive information\n  - **injection**: Shell injection vulnerabilities from untrusted input\n  - **style**: Naming conventions and style best practices\n- **Auto-fix Issues**: Automatically fix formatting issues and replace version tags with commit hashes\n- **Upgrade Actions**: Discover and upgrade GitHub Actions to their latest versions based on semantic versioning patterns\n- **Config Management**: Configure linters and version patterns via `.github-ci.yaml`\n\n## Quick Start\n\n```bash\n# Install\ngo install github.com/reugn/github-ci/cmd/github-ci@latest\n\n# Verify\ngithub-ci --version\n\n# Initialize config\ngithub-ci init\n\n# Lint workflows\ngithub-ci lint\n\n# Auto-fix issues\ngithub-ci lint --fix\n\n# Upgrade actions (preview)\ngithub-ci upgrade --dry-run\n\n# Upgrade actions\ngithub-ci upgrade\n```\n\n## Installation\n\n### Using Go Install\n\n```bash\ngo install github.com/reugn/github-ci/cmd/github-ci@latest\n```\n\nMake sure `$GOPATH/bin` or `$GOBIN` is in your `$PATH`.\n\n### From Releases\n\nDownload the latest binary for your platform from [Releases](https://github.com/reugn/github-ci/releases).\n\n### From Source\n\n```bash\ngit clone https://github.com/reugn/github-ci.git\ncd github-ci\ngo build -o github-ci ./cmd/github-ci\nsudo mv github-ci /usr/local/bin/\n```\n\n## Example Usage\n\n### Linting Workflows\n\n```bash\n$ github-ci lint\n\nIssues:\n  ci.yml: (permissions) Workflow is missing permissions configuration\n  ci.yml:15: (versions) Action actions/checkout@v3 uses version tag 'v3' instead of commit hash\n\nRun with --fix to automatically fix some issues\n\n2 issue(s).\n```\n\n### Auto-fixing Issues\n\n```bash\n$ github-ci lint --fix\n\nFixed:\n  ci.yml:15: (versions) Action actions/checkout@v3 uses version tag 'v3' instead of commit hash\n\nIssues:\n  ci.yml: (permissions) Workflow is missing permissions configuration\n\n1 issue(s).\n```\n\n### Upgrading Actions\n\n```bash\n$ github-ci upgrade --dry-run\n\nWould update 2 action(s):\n\n  .github/workflows/ci.yml:15\n    actions/checkout@v3\n    → actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 (v4.1.1)\n\n  .github/workflows/ci.yml:22\n    actions/setup-go@v4\n    → actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 (v5.0.0)\n```\n\n## Configuration\n\nCreate a `.github-ci.yaml` file to configure the tool:\n\n```yaml\nrun:\n  timeout: 5m\n  issues-exit-code: 1\n\nlinters:\n  default: all\n  enable:\n    - permissions\n    - versions\n    - format\n  settings:\n    format:\n      indent-width: 2\n      max-line-length: 120\n\nupgrade:\n  format: tag  # or 'major', 'hash'\n  actions:\n    actions/checkout:\n      constraint: ^1.0.0\n```\n\nSee the [Configuration Guide](https://reugn.github.io/github-ci/configuration/) for all options.\n\n## Authentication\n\nFor higher rate limits and private repository access, set a GitHub token:\n\n```bash\nexport GITHUB_TOKEN=ghp_your_token_here\n```\n\n## Requirements\n\n- Go 1.24 or later\n- Internet connection (for GitHub API access)\n\n## License\n\nLicensed under the Apache 2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freugn%2Fgithub-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freugn%2Fgithub-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freugn%2Fgithub-ci/lists"}