{"id":21755326,"url":"https://github.com/hiroxto/epgstation-slack-notification","last_synced_at":"2026-01-31T08:32:03.161Z","repository":{"id":41892634,"uuid":"245803594","full_name":"hiroxto/epgstation-slack-notification","owner":"hiroxto","description":"EPGStation の通知を Slack に送るコマンドラインツール","archived":false,"fork":false,"pushed_at":"2024-10-02T14:06:23.000Z","size":318,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T10:00:04.125Z","etag":null,"topics":["dtv","epgstation","golang","slack"],"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/hiroxto.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}},"created_at":"2020-03-08T11:41:08.000Z","updated_at":"2024-10-02T14:06:25.000Z","dependencies_parsed_at":"2024-05-16T16:28:42.252Z","dependency_job_id":"087aebd1-19ec-44b4-b90e-d09a06d04ce5","html_url":"https://github.com/hiroxto/epgstation-slack-notification","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hiroxto/epgstation-slack-notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroxto%2Fepgstation-slack-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroxto%2Fepgstation-slack-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroxto%2Fepgstation-slack-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroxto%2Fepgstation-slack-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiroxto","download_url":"https://codeload.github.com/hiroxto/epgstation-slack-notification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroxto%2Fepgstation-slack-notification/sbom","scorecard":{"id":465401,"data":{"date":"2025-08-11","repo":{"name":"github.com/hiroxto/epgstation-slack-notification","commit":"bc6f45d8fabca7d1d082361c385f4389debbcda0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"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":"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":"Code-Review","score":0,"reason":"Found 0/5 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: topLevel 'contents' permission set to 'write': .github/workflows/goreleaser.yml:11","Warn: no topLevel permission defined: .github/workflows/test.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":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/goreleaser.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/goreleaser.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/goreleaser.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:123: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:126: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:131: update your workflow using https://app.stepsecurity.io/secureworkflow/hiroxto/epgstation-slack-notification/test.yml/master?enable=pin","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand 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":"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.2.1 not signed: https://api.github.com/repos/hiroxto/epgstation-slack-notification/releases/156422321","Warn: release artifact v2.2.0 not signed: https://api.github.com/repos/hiroxto/epgstation-slack-notification/releases/155400600","Warn: release artifact v2.2.1 does not have provenance: https://api.github.com/repos/hiroxto/epgstation-slack-notification/releases/156422321","Warn: release artifact v2.2.0 does not have provenance: https://api.github.com/repos/hiroxto/epgstation-slack-notification/releases/155400600"],"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":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: branch 'master' does not require approvers","Warn: codeowners review is not required on branch 'master'","Warn: 'last push approval' is disabled on branch 'master'","Warn: 'up-to-date branches' is disabled on branch 'master'","Info: status check found to merge onto on branch 'master'","Info: PRs are required in order to make changes on 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":"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":"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":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-19T12:21:53.141Z","repository_id":41892634,"created_at":"2025-08-19T12:21:53.142Z","updated_at":"2025-08-19T12:21:53.142Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28935403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T07:49:44.436Z","status":"ssl_error","status_checked_at":"2026-01-31T07:49:34.274Z","response_time":128,"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":["dtv","epgstation","golang","slack"],"created_at":"2024-11-26T09:17:35.833Z","updated_at":"2026-01-31T08:32:03.144Z","avatar_url":"https://github.com/hiroxto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# epgstation-slack-notification\n\n![GitHub Actions Test Status](https://github.com/hiroxto/epgstation-slack-notification/workflows/Test/badge.svg)\n\nEPGStation の通知を Slack に送るコマンドラインツール\n\n\u003cdetails\u003e\n\u003csummary\u003eスクリーンショット\u003c/summary\u003e\n\n### 録画予約新規追加\n\n![reserveNewAddtionCommand](https://github.com/hiroxto/epgstation-slack-notification/assets/12016555/5969a57f-b1ff-4543-a605-4427f8942832)\n\n### 録画準備開始\n\n![recordingPreStartCommand](https://github.com/hiroxto/epgstation-slack-notification/assets/12016555/13752950-4afa-4aea-b0f9-53fd570b903f)\n\n### 録画開始\n\n![recordingStartCommand](https://github.com/hiroxto/epgstation-slack-notification/assets/12016555/dd771fe7-137d-4a21-bde2-5d641d51c9ad)\n\n### エンコード終了\n\n![encodingFinishCommand](https://github.com/hiroxto/epgstation-slack-notification/assets/12016555/0e7a9677-2ee9-401e-99a6-bee6c4f22985)\n\n\u003c/details\u003e\n\n## ダウンロード\n\n[Releases](https://github.com/hiroxto/epgstation-slack-notification/releases) から OS とアーキテクチャに合ったバイナリをダウンロード。\n\nLinux / macOS の amd64 / arm64 / armv7 のみビルドしているのでそれ以外の環境では自分でビルドする。\n\n## 設定\n\n### Slack API Token の準備\n\nメッセージの投稿に API Token を使うので準備する。\n詳しくは [Slack のドキュメント](https://api.slack.com/authentication/token-types)を参照。\n\n作成した API Token は設定ファイルに書き込むので控えておく。\n\n### 投稿するチャンネル ID の確認\n\n投稿するチャンネルをチャンネル ID で指定するので確認して控えておく。\n\n### 設定ファイルを作成\n\n`epgstation-slack-config.example.yml` ファイルを `epgstation-slack-config.yml` へコピーして Slack の API キーとチャンネル名を書き込む。\n\n設定ファイルはデフォルトではバイナリと同じディレクトリに配置した `epgstation-slack-config.yml` ファイルを利用し，オプションで指定された場合はオプションの値が優先される。\n\n```bash\n$ wget -O epgstation-slack-config.yml https://raw.githubusercontent.com/hiroxto/epgstation-slack-notification/master/epgstation-slack-config.example.yml\n```\n\nデフォルト以外の場所に配置した設定ファイルを利用する場合は `--config`, `-c` オプションを利用する。\n\n```bash\n$ ./epgstation-slack-notification --config /path/to/config.yml reserve-new-addition\n```\n\n### コマンドをセットする\n\nEPGStation の `config/config.yml` にコマンドをセットする。\n\n```yaml\n# 録画予約の新規追加時に実行されるコマンド\nreserveNewAddtionCommand: \"/path/to/epgstation-slack-notification reserve-new-addition\"\n# 録画情報の更新時に実行されるコマンド\nreserveUpdateCommand: \"/path/to/epgstation-slack-notification reserve-update\"\n# 録画予約の削除時に実行されるコマンド\nreservedeletedCommand: \"/path/to/epgstation-slack-notification reserve-deleted\"\n# 録画準備の開始時に実行されるコマンド\nrecordingPreStartCommand: \"/path/to/epgstation-slack-notification recording-pre-start\"\n# 録画準備の失敗時に実行されるコマンド\nrecordingPrepRecFailedCommand: \"/path/to/epgstation-slack-notification recording-prep-rec-failed\"\n# 録画開始時に実行するコマンド\nrecordingStartCommand: \"/path/to/epgstation-slack-notification recording-start\"\n# 録画終了時に実行するコマンド\nrecordingFinishCommand: \"/path/to/epgstation-slack-notification recording-finish\"\n# 録画中のエラー発生時に実行するコマンド\nrecordingFailedCommand: \"/path/to/epgstation-slack-notification recording-failed\"\n# エンコード終了時に実行するコマンド\nencodingFinishCommand: \"/path/to/epgstation-slack-notification encoding-finish\"\n```\n\nEPGStation v1 を使っている場合は`config/config.json`にコマンドをセットする。\n\n```json\n{\n  \"reservationAddedCommand\": \"/path/to/epgstation-slack-notification reservation-added\",\n  \"recordedPreStartCommand\": \"/path/to/epgstation-slack-notification recorded-pre-start\",\n  \"recordedPrepRecFailedCommand\": \"/path/to/epgstation-slack-notification recorded-prep-rec-failed\",\n\n  \"recordedStartCommand\": \"/path/to/epgstation-slack-notification recorded-start\",\n  \"recordedEndCommand\": \"/path/to/epgstation-slack-notification recorded-end\",\n  \"recordedFailedCommand\": \"/path/to/epgstation-slack-notification recorded-failed\"\n}\n```\n\n### EPGStation を再起動\n\n設定をした後, EPGStation を再起動する。\n\n```bash\n$ pm2 restart epgstation\n```\n\n## 通知内容のカスタマイズ\n\n通知設定の `message` と `template` は Go の text/template を使って任意の内容を出力できる。\n\nテンプレートに渡されるデータの構造と中身は `dump:detail` コマンドを使って確認可能。\n\n渡されるデータはコマンド毎に分かれていて以下のように使い分けされる。\n- `ReserveDetail` を使うコマンド\n  - `reserve-new-addition`\n  - `reserve-update`\n  - `reserve-deleted`\n  - `recording-pre-start`\n  - `recording-prep-rec-failed`\n- `RecordingDetail` を使うコマンド\n  - `recording-start`\n  - `recording-finish`\n  - `recording-failed`\n- `EncodingDetail` を使うコマンド\n  - `encoding-finish`\n\nデータは基本的に [EPGStation のドキュメント通りの環境変数](https://github.com/l3tnun/EPGStation/blob/master/doc/conf-manual.md#%E5%A4%96%E9%83%A8%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E5%AE%9F%E8%A1%8C)の値が入る。\n\nEPGStation から渡される環境変数に加えて一部独自の値も持っている。\n- `StartAtTime`\n  - 環境変数 `STARTAT` を `time.Time` 型に変換した値\n- `EndAtTime`\n  - 環境変数 `ENDAT` を `time.Time` 型に変換した値\n- `DurationMin`\n  - 環境変数 `DURATION` を分単位の `int64` 型に変換した値\n\n## 設定の確認\n\n設定内容を確認する時は `dump:config` コマンドを利用する。\n\n## 環境変数の確認\n\n環境変数の内容を確認する時は `dump:env` コマンドを利用する。\n\n## Licence\n\n[MIT Licence](https://raw.githubusercontent.com/hiroxto/epgstation-slack-notification/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroxto%2Fepgstation-slack-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiroxto%2Fepgstation-slack-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroxto%2Fepgstation-slack-notification/lists"}