{"id":28951584,"url":"https://github.com/joeig/go-licenses-action","last_synced_at":"2026-04-24T20:32:58.843Z","repository":{"id":293827777,"uuid":"985219726","full_name":"joeig/go-licenses-action","owner":"joeig","description":"A GitHub Action that uses github.com/google/go-licenses to analyze the dependency tree of a Go package/binary and check license compliance.","archived":false,"fork":false,"pushed_at":"2025-11-25T14:22:47.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T20:58:23.148Z","etag":null,"topics":["github-actions","go","license-checking"],"latest_commit_sha":null,"homepage":"","language":null,"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/joeig.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-05-17T10:03:28.000Z","updated_at":"2025-11-25T14:22:49.000Z","dependencies_parsed_at":"2025-05-17T12:19:17.284Z","dependency_job_id":"09481438-fff9-489a-9a06-811477d4dfdd","html_url":"https://github.com/joeig/go-licenses-action","commit_stats":null,"previous_names":["joeig/go-licenses-action"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/joeig/go-licenses-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeig%2Fgo-licenses-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeig%2Fgo-licenses-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeig%2Fgo-licenses-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeig%2Fgo-licenses-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeig","download_url":"https://codeload.github.com/joeig/go-licenses-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeig%2Fgo-licenses-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32239699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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","go","license-checking"],"created_at":"2025-06-23T15:05:55.483Z","updated_at":"2026-04-24T20:32:58.828Z","avatar_url":"https://github.com/joeig.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go licenses check action\n\nA GitHub Action that uses [github.com/google/go-licenses](https://github.com/google/go-licenses) to analyze the dependency tree of a Go package/binary and check license compliance.\n\n## Description\n\nThis action helps you ensure that all dependencies in your Go project comply with your license requirements. It can:\n\n- Report all licenses used in your project dependencies\n- Check if all licenses are allowed based on your criteria\n- Filter out specific packages from the check\n- Include or exclude test dependencies\n\n## Usage\n\nAdd this action to your GitHub workflow:\n\n```yaml\non:\n  push:\n    branches: [ main ]\n  pull_request:\n    branches: [ main ]\njobs:\n  license-check:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4    \n      - uses: joeig/go-licenses-action@v1\n        with:\n          # Optional: Specify disallowed license types\n          disallowed-types: 'forbidden,unknown'\n```\n\n## Inputs\n\n| Input                  | Description                                                                                                                                                                                                                                                                 | Default             |\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| `allowed-licenses`     | Comma-separated list of allowed license names. Can't be used in combination with `disallowed-types`. See [google/licenseclassifier](https://github.com/google/licenseclassifier/blob/e6a9bb99b5a6f71d5a34336b8245e305f5430f99/license_type.go) for supported license names. | `\"\"`                |\n| `application-version`  | The desired version of `github.com/google/go-licenses`.                                                                                                                                                                                                                     | `v1.6.0`            |\n| `confidence-threshold` | Minimum confidence required to positively identify a license                                                                                                                                                                                                                | `0.9`               |\n| `disallowed-types`     | Comma-separated list of disallowed license types. Can't be used in combination with `allowed-licenses`. Allowed values: `forbidden`, `notice`, `permissive`, `reciprocal`, `restricted`, `unencumbered`, `unknown`                                                          | `forbidden,unknown` |\n| `ignore-packages`      | Comma-separated list of package path prefixes to be ignored. Dependencies from the ignored packages are still checked.                                                                                                                                                      | `\"\"`                |\n| `include-tests`        | Include packages only imported by testing code                                                                                                                                                                                                                              | `true`              |\n| `package`              | The package to be checked.                                                                                                                                                                                                                                                  | `./...`             |\n| `working-directory`    | The working directory.                                                                                                                                                                                                                                                      | `./`                |\n\n## Examples\n\n### Basic usage with default settings\n\n```yaml\nsteps:\n  - uses: actions/checkout@v4\n  - uses: joeig/go-licenses-action@v1\n```\n\n### Allow only specific licenses\n\n```yaml\nsteps:\n  - uses: actions/checkout@v4\n  - uses: joeig/go-licenses-action@v1\n    with:\n      allowed-licenses: \"MIT,Apache-2.0,BSD-3-Clause\"\n      disallowed-types: \"\"\n```\n\n### Disallow specific license types\n\n```yaml\nsteps:\n  - uses: actions/checkout@v4\n  - uses: joeig/go-licenses-action@v1\n    with:\n      disallowed-types: \"forbidden,restricted,unknown\"\n```\n\n### Ignore specific packages\n\n```yaml\nsteps:\n  - uses: actions/checkout@v4\n  - uses: joeig/go-licenses-action@v1\n    with:\n      ignore-packages: \"github.com/example/package1,github.com/example/package2\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeig%2Fgo-licenses-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeig%2Fgo-licenses-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeig%2Fgo-licenses-action/lists"}