{"id":15767990,"url":"https://github.com/technote-space/filter-github-action","last_synced_at":"2026-01-12T06:21:40.774Z","repository":{"id":35123210,"uuid":"209622549","full_name":"technote-space/filter-github-action","owner":"technote-space","description":"Helper to filter GitHub Actions","archived":false,"fork":false,"pushed_at":"2023-12-26T09:02:00.000Z","size":3147,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T03:06:41.221Z","etag":null,"topics":["github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/technote-space.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://paypal.me/technote0space"}},"created_at":"2019-09-19T18:27:12.000Z","updated_at":"2022-01-04T13:23:50.000Z","dependencies_parsed_at":"2023-12-22T10:24:30.435Z","dependency_job_id":"da8a571a-bee4-4612-af96-558e093d7cbb","html_url":"https://github.com/technote-space/filter-github-action","commit_stats":null,"previous_names":[],"tags_count":126,"template":false,"template_full_name":null,"purl":"pkg:github/technote-space/filter-github-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Ffilter-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Ffilter-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Ffilter-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Ffilter-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technote-space","download_url":"https://codeload.github.com/technote-space/filter-github-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Ffilter-github-action/sbom","scorecard":{"id":872205,"data":{"date":"2025-08-11","repo":{"name":"github.com/technote-space/filter-github-action","commit":"079b6ed252abb84bc69851c52317758cd48cdc80"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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/6 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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/add-release-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/add-release-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/add-release-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/add-release-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-warnings.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/check-warnings.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-warnings.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/check-warnings.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-warnings.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/check-warnings.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:125: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:151: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:189: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:195: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:210: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:211: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-opened.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/issue-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-opened.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/issue-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-opened.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/issue-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-opened.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:110: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:114: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/project-card-moved.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/project-card-moved.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sync-workflows.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/sync-workflows.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/toc.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/toc.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/toc.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/toc.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/update-dependencies.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/update-dependencies.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/update-dependencies.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/update-dependencies.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/filter-github-action/update-dependencies.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yml:96","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  37 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/add-release-tag.yml:1","Warn: no topLevel permission defined: .github/workflows/check-warnings.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/issue-opened.yml:1","Warn: no topLevel permission defined: .github/workflows/pr-opened.yml:1","Warn: no topLevel permission defined: .github/workflows/pr-updated.yml:1","Warn: no topLevel permission defined: .github/workflows/project-card-moved.yml:1","Warn: no topLevel permission defined: .github/workflows/sync-workflows.yml:1","Warn: no topLevel permission defined: .github/workflows/toc.yml:1","Warn: no topLevel permission defined: .github/workflows/update-dependencies.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":"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":"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":"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":"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":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 30 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":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-353f-5xf4-qw67","Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw","Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-24T04:37:54.185Z","repository_id":35123210,"created_at":"2025-08-24T04:37:54.185Z","updated_at":"2025-08-24T04:37:54.185Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"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":["github-actions"],"created_at":"2024-10-04T13:42:04.008Z","updated_at":"2026-01-12T06:21:40.755Z","avatar_url":"https://github.com/technote-space.png","language":"TypeScript","funding_links":["https://paypal.me/technote0space"],"categories":[],"sub_categories":[],"readme":"# Filter GitHub Action\n\n[![npm version](https://badge.fury.io/js/%40technote-space%2Ffilter-github-action.svg)](https://badge.fury.io/js/%40technote-space%2Ffilter-github-action)\n[![CI Status](https://github.com/technote-space/filter-github-action/workflows/CI/badge.svg)](https://github.com/technote-space/filter-github-action/actions)\n[![codecov](https://codecov.io/gh/technote-space/filter-github-action/branch/master/graph/badge.svg)](https://codecov.io/gh/technote-space/filter-github-action)\n[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/filter-github-action/badge)](https://www.codefactor.io/repository/github/technote-space/filter-github-action)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/filter-github-action/blob/master/LICENSE)\n\n*Read this in other languages: [English](README.md), [日本語](README.ja.md).*\n\nGitHub Actions を Context などでフィルタリングするためのヘルパー\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n- [使用方法](#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)\n  - [上の例の結果](#%E4%B8%8A%E3%81%AE%E4%BE%8B%E3%81%AE%E7%B5%90%E6%9E%9C)\n  - [Ignore check](#ignore-check)\n- [Author](#author)\n\n\u003c/details\u003e\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## 使用方法\n1. インストール  \n`npm i @technote-space/filter-github-action`\n1.   \n```typescript\nimport { Context } from '@actions/github/lib/context';\nimport { context } from '@actions/github';\nimport { isTargetEvent, isTargetLabels } from '@technote-space/filter-github-action';\n\nconsole.log( isTargetEvent( {\n\t'release': [\n\t\t// or\n\t\t'published',\n\t\t'rerequested',\n\t],\n\t'push': [\n\t\t// use context\n\t\t(context: Context): boolean =\u003e /^refs\\/tags\\//.test(context.ref),\n\t\t'rerequested',\n\t],\n\t'pull_request': [\n\t\t// or\n\t\t[\n\t\t\t// and\n\t\t\t(context: Context): boolean =\u003e /^refs\\/tags\\//.test(context.ref),\n\t\t\t'rerequested',\n\t\t],\n\t],\n\t// wildcard\n\t'project_card': '*',\n}, context ) );\n\nconst includes = ['label1', 'label2'];\nconst excludes = ['label3', 'label4'];\nconsole.log( isTargetLabels( includes, excludes, context ) );\n```\n\n### 上の例の結果\n#### isTargetEvent\n|eventName|action|ref|result|\n|:---:|:---:|:---:|:---:|\n|release|published|*|true|\n|release|rerequested|*|true|\n|release|created|*|false|\n|push|*|refs/tags/v1.2.3|true|\n|push|*|refs/heads/v1.2.3|false|\n|push|rerequested|*|true|\n|pull_request|rerequested|refs/tags/v1.2.3|true|\n|pull_request|created|refs/tags/v1.2.3|false|\n|pull_request|rerequested|refs/heads/v1.2.3|false|\n|project_card|*|*|true|\n|label|*|*|false|\n\n#### isTargetLabels\n|eventName|context labels|includes|excludes|result|\n|:---:|:---:|:---:|:---:|:---:|\n|issues|---|---|---|true|\n|pull_request|---|---|---|true|\n|push|---|---|---|true|\n|issues|label1|---|---|true|\n|issues|---|label1|---|false|\n|issues|label1|label1|---|true|\n|issues|label1, label2|label1|---|true|\n|issues|label1|label1, label2|---|true|\n|issues|---|---|label1|true|\n|issues|label1|---|label1|false|\n|issues|label1, label2|label1|label2|false|\n|issues|label1, label2|label1|label3|true|\n\n### Ignore check\n```\nwith:\n  IGNORE_CONTEXT_CHECK: true\n```\n\n## Author\n[GitHub (Technote)](https://github.com/technote-space)  \n[Blog](https://technote.space)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Ffilter-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnote-space%2Ffilter-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Ffilter-github-action/lists"}