{"id":47680960,"url":"https://github.com/koki-develop/ghasec","last_synced_at":"2026-04-17T14:04:19.738Z","repository":{"id":345551575,"uuid":"1185306033","full_name":"koki-develop/ghasec","owner":"koki-develop","description":"🫴 Catch security risks in your GitHub Actions workflows.","archived":false,"fork":false,"pushed_at":"2026-04-11T05:34:04.000Z","size":1133,"stargazers_count":27,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-11T07:21:41.363Z","etag":null,"topics":["github-actions","security"],"latest_commit_sha":null,"homepage":"","language":"Go","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/koki-develop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2026-03-18T12:56:57.000Z","updated_at":"2026-04-09T14:14:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/koki-develop/ghasec","commit_stats":null,"previous_names":["koki-develop/ghasec"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/koki-develop/ghasec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fghasec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fghasec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fghasec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fghasec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koki-develop","download_url":"https://codeload.github.com/koki-develop/ghasec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fghasec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31931960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: 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":["github-actions","security"],"created_at":"2026-04-02T13:59:26.251Z","updated_at":"2026-04-17T14:04:19.733Z","avatar_url":"https://github.com/koki-develop.png","language":"Go","readme":"\u003ch1 align=\"center\"\u003e\nghasec\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/koki-develop/ghasec/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/koki-develop/ghasec\" alt=\"GitHub Release\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/koki-develop/ghasec/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/koki-develop/ghasec/ci.yml?branch=main\u0026label=ci\" alt=\"CI\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/koki-develop/ghasec\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/koki-develop/ghasec\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n\u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/koki-develop/ghasec\" alt=\"LICENSE\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ci\u003e\nCatch security risks in your GitHub Actions workflows.\n\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./docs/screenshot.png\" alt=\"ghasec\" width=\"800\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n### Homebrew\n\n```console\n$ brew install koki-develop/tap/ghasec\n```\n\n### Go\n\n```console\n$ go install github.com/koki-develop/ghasec@latest\n```\n\n### Docker\n\n```console\n$ docker run --rm -v \"$(pwd):/mnt\" ghcr.io/koki-develop/ghasec:latest\n```\n\n### GitHub Releases\n\nDownload the binary for your platform from the [Releases](https://github.com/koki-develop/ghasec/releases/latest) page.\n\n### GitHub Actions\n\n- [ghasec-action](https://github.com/koki-develop/ghasec-action) - A GitHub Action to run ghasec.\n- [setup-ghasec](https://github.com/koki-develop/setup-ghasec) - A GitHub Action to install ghasec. Use this if you want to run ghasec with custom options.\n\n## Usage\n\n```console\n$ ghasec --help\nCatch security risks in your GitHub Actions workflows.\n\nUsage:\n  ghasec [files...] [flags]\n\nFlags:\n      --format string   output format (\"default\", \"github-actions\", \"markdown\", or \"sarif\") (default \"default\")\n  -h, --help            help for ghasec\n      --no-color        disable colored output\n      --online          enable rules that require network access\n  -v, --version         version for ghasec\n```\n\nWhen run without arguments, ghasec automatically discovers `.github/workflows/*.yml|yaml` and `**/action.yml|yaml` files in the current directory.\n\n```console\n$ ghasec\n```\n\nYou can also specify files explicitly:\n\n```console\n$ ghasec example.yml\n```\n\n### Online Rules\n\nSome rules require network access to the GitHub API. Use the `--online` flag to enable them:\n\n```console\n$ ghasec --online\n```\n\nThe GitHub API is subject to [rate limiting](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api). Set the `GHASEC_GITHUB_TOKEN` or `GITHUB_TOKEN` environment variable to use a higher rate limit:\n\n```console\n$ GHASEC_GITHUB_TOKEN=ghp_... ghasec --online\n```\n\n### Markdown Format\n\nUse `--format markdown` to produce Markdown output. Each diagnostic includes the source line, a description of why the issue matters, and how to fix it:\n\n```console\n$ ghasec --format markdown\n```\n\nThis format is useful for AI agents like Claude Code or Cursor — pass the output directly and let the agent fix the issues autonomously.\n\n### SARIF Format\n\nUse `--format sarif` to produce [SARIF 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html) output. This enables integration with [reviewdog](https://github.com/reviewdog/reviewdog), GitHub Code Scanning, and other SARIF-consuming tools.\n\n### Ignoring Rules\n\nAdd a `# ghasec-ignore: \u003crule-name\u003e` comment above the line to suppress a specific diagnostic:\n\n```yaml\n# ghasec-ignore: unpinned-action\n- uses: actions/checkout@v6\n```\n\nMultiple rules can be separated by commas:\n\n```yaml\n# ghasec-ignore: unpinned-action, checkout-persist-credentials\n- uses: actions/checkout@v6\n```\n\nOmit the rule name to suppress all diagnostics on the line:\n\n```yaml\n# ghasec-ignore\n- uses: actions/checkout@v6\n```\n\n## Rules\n\nSee [Rules](./rules/README.md) for the full list of available rules.\n\n## License\n\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fghasec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoki-develop%2Fghasec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fghasec/lists"}