{"id":15686965,"url":"https://github.com/haya14busa/ghglob","last_synced_at":"2026-02-27T02:32:28.049Z","repository":{"id":57500253,"uuid":"212952168","full_name":"haya14busa/ghglob","owner":"haya14busa","description":"ghglob is glob, or more like pattern matcher based on GitHub Actions's Filter pattern spec. [UNOFFICIAL]","archived":false,"fork":false,"pushed_at":"2020-02-11T14:08:13.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T14:46:52.730Z","etag":null,"topics":["github-actions","glob"],"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/haya14busa.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}},"created_at":"2019-10-05T06:02:45.000Z","updated_at":"2022-11-17T01:39:26.000Z","dependencies_parsed_at":"2022-08-31T11:03:24.551Z","dependency_job_id":null,"html_url":"https://github.com/haya14busa/ghglob","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/haya14busa/ghglob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fghglob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fghglob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fghglob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fghglob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haya14busa","download_url":"https://codeload.github.com/haya14busa/ghglob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fghglob/sbom","scorecard":{"id":458040,"data":{"date":"2025-08-11","repo":{"name":"github.com/haya14busa/ghglob","commit":"c28f127bd85ea42b4ef62381bd7a9861ffb1b785"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/reviewdog.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/reviewdog.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/haya14busa/ghglob/reviewdog.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.0.2 not signed: https://api.github.com/repos/haya14busa/ghglob/releases/21887844","Warn: release artifact v2.0.1 not signed: https://api.github.com/repos/haya14busa/ghglob/releases/20493873","Warn: release artifact v2.0.0 not signed: https://api.github.com/repos/haya14busa/ghglob/releases/20493824","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/haya14busa/ghglob/releases/20492382","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/haya14busa/ghglob/releases/20492206","Warn: release artifact v2.0.2 does not have provenance: https://api.github.com/repos/haya14busa/ghglob/releases/21887844","Warn: release artifact v2.0.1 does not have provenance: https://api.github.com/repos/haya14busa/ghglob/releases/20493873","Warn: release artifact v2.0.0 does not have provenance: https://api.github.com/repos/haya14busa/ghglob/releases/20493824","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/haya14busa/ghglob/releases/20492382","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/haya14busa/ghglob/releases/20492206"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T10:16:45.251Z","repository_id":57500253,"created_at":"2025-08-19T10:16:45.251Z","updated_at":"2025-08-19T10:16:45.251Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29883102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","glob"],"created_at":"2024-10-03T17:42:06.229Z","updated_at":"2026-02-27T02:32:28.015Z","avatar_url":"https://github.com/haya14busa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghglob\n\n[![Go status](https://github.com/haya14busa/ghglob/workflows/Go/badge.svg)](https://github.com/haya14busa/ghglob/actions)\n[![releases](https://img.shields.io/github/release/haya14busa/ghglob.svg)](https://github.com/haya14busa/ghglob/releases)\n[![codecov](https://codecov.io/gh/haya14busa/ghglob/branch/master/graph/badge.svg)](https://codecov.io/gh/haya14busa/ghglob)\n\n**ghglob** is glob, or more like pattern matcher based on GitHub Actions's\n[Filter pattern spec](https://help.github.com/en/articles/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet).\n\nSupport multiple patterns including negation (`!\u003cpattern\u003e`).\n\n## Spec\n\n\u003e - `*` matches zero or more characters, but does not match the / character\n\u003e - `**` matches zero or more of any character\n\u003e - `?` matches zero or one of the proceeding character\n\u003e - `+` matches one or more of the proceeding character\n\u003e - `[]` matches any character listed, or included in ranges. Ranges can only include a-zA-Z0-9. e.g [123abc] or [0-9a-f]\n\u003e - `!` at the start of a pattern makes it negate previous positive patterns. It has no special meaning if not the first character\n\u003e\n\u003e -- https://help.github.com/en/articles/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet\n\n\n## CLI\n\n### Installation\n\n```shell\n# Install latest version. (Install it into ./bin/ by default).\n$ curl -sfL https://raw.githubusercontent.com/haya14busa/ghglob/master/install.sh| sh -s\n\n# Specify installation directory ($(go env GOPATH)/bin/) and version.\n$ curl -sfL https://raw.githubusercontent.com/haya14busa/ghglob/master/install.sh| sh -s -- -b $(go env GOPATH)/bin [vX.Y.Z]\n\n# In alpine linux (as it does not come with curl by default)\n$ wget -O - -q https://raw.githubusercontent.com/haya14busa/ghglob/master/install.sh| sh -s [vX.Y.Z]\n\n$ go get github.com/haya14busa/ghglob/cmd/ghglob\n\n# homebrew / linuxbrew\n$ brew install haya14busa/tap/ghglob\n$ brew upgrade haya14busa/tap/ghglob\n\n# Go\n$ go get github.com/haya14busa/ghglob/cmd/ghglob\n```\n\n### Example usages\n\n```\n$ ghglob '**/*.go'\ncmd/ghglob/main.go 99\nghmatcher/ghmatcher.go\nghmatcher/ghmatcher_test.go\nghglob_test.go\nghglob.go\n_testdir/main.go\ncmd/ghglob/main.go\n\n# Support negation pattern.\n$ git ls-files | ghglob '**.go' '!**_test.go'\n_testdir/main.go\ncmd/ghglob/main.go\nghglob.go\nghmatcher/ghmatcher.go\n\n# List .js or .jsx files.\n$ ghglob '**.jsx?'\n\n# As CLI arguments. e.g. https://github.com/koalaman/shellcheck\n$ shellcheck $(ghglob '**/*.sh')\n\n# gofmt except test data.\n$ gofmt -d -s $(ghglob '**.go' '!_testdir/**')\n\n# Run golint against only changed files.\n$ git diff --name-only master | ghglob '**.go' | xargs -i golint {}\n```\n\n## Packages\n\n| Package | GoDoc |\n| ------- | ----- |\n| ghglob | [![GoDoc - ghglob](https://godoc.org/github.com/haya14busa/ghglob?status.svg)](https://godoc.org/github.com/haya14busa/ghglob) |\n| ghmatcher | [![GoDoc - ghmatcher](https://godoc.org/github.com/haya14busa/ghglob/ghmatcher?status.svg)](https://godoc.org/github.com/haya14busa/ghglob/ghmatcher) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fghglob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaya14busa%2Fghglob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fghglob/lists"}