{"id":28168880,"url":"https://github.com/ks6088ts-labs/workshop-dify","last_synced_at":"2026-01-25T16:01:37.455Z","repository":{"id":281101469,"uuid":"944207864","full_name":"ks6088ts-labs/workshop-dify","owner":"ks6088ts-labs","description":"Workshop for Dify","archived":false,"fork":false,"pushed_at":"2025-07-17T03:40:20.000Z","size":48,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-17T10:41:10.053Z","etag":null,"topics":["dify"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/ks6088ts-labs.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":"2025-03-07T00:49:16.000Z","updated_at":"2025-07-17T03:40:16.000Z","dependencies_parsed_at":"2025-03-07T02:19:50.788Z","dependency_job_id":"165359e1-3e47-4989-92a8-7a65a8c8320e","html_url":"https://github.com/ks6088ts-labs/workshop-dify","commit_stats":null,"previous_names":["ks6088ts-labs/workshop-dify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ks6088ts-labs/workshop-dify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ks6088ts-labs%2Fworkshop-dify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ks6088ts-labs%2Fworkshop-dify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ks6088ts-labs%2Fworkshop-dify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ks6088ts-labs%2Fworkshop-dify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ks6088ts-labs","download_url":"https://codeload.github.com/ks6088ts-labs/workshop-dify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ks6088ts-labs%2Fworkshop-dify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"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":["dify"],"created_at":"2025-05-15T15:14:31.122Z","updated_at":"2026-01-25T16:01:37.432Z","avatar_url":"https://github.com/ks6088ts-labs.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# workshop-dify\nWorkshop for Dify\n\n## GitHub Actions Workflow\n\nこのリポジトリには、毎日日本時間06:00にDifyワークフローを自動実行するGitHub Actionsが含まれています。\n\n### 主な機能\n- 毎日日本時間06:00の自動実行\n- GitHub Secretsを使用したAPIトークンの安全な管理\n- 手動実行機能\n- エラーハンドリングとログ出力\n\n## セットアップ手順\n\n### 1. GitHub Secretsの設定\n\nワークフローを実行するために、以下のsecretsをGitHubリポジトリに設定する必要があります。\n\n#### 必須のSecrets\n\n1. **DIFY_API_KEY** (必須)\n   - DifyアプリケーションのAPIキー\n   - Difyコンソール → アプリケーション → API → APIキーを作成からAPIキーを取得\n\n2. **DIFY_BASE_URL** (オプション)\n   - DifyのAPI base URL\n   - デフォルト: `https://api.dify.ai/v1`\n   - セルフホストしている場合のみ設定が必要\n\n#### Secretsの設定方法\n\n1. GitHubリポジトリのページに移動\n2. `Settings` タブをクリック\n3. 左サイドバーの `Secrets and variables` → `Actions` をクリック\n4. `New repository secret` ボタンをクリック\n5. 以下のsecretsを追加:\n   - Name: `DIFY_API_KEY`, Value: [DifyのAPIキー]\n   - Name: `DIFY_BASE_URL`, Value: [カスタムURL] (オプション)\n\n### 2. ワークフローの設定\n\nワークフローファイル `.github/workflows/daily-dify-workflow.yml` では以下が設定されています:\n\n- **実行スケジュール**: 毎日日本時間 06:00 (UTC 21:00)\n- **手動実行**: GitHub上から手動でワークフローを実行可能\n- **エラーハンドリング**: API呼び出しの失敗時は適切なエラーメッセージを表示\n\n### 3. ワークフローの実行確認\n\n#### ローカルテスト（推奨）\nワークフローをGitHub Actionsで実行する前に、ローカルでテストすることを推奨します：\n\n```bash\n# 環境変数を設定\nexport DIFY_API_KEY=\"your-api-key-here\"\nexport DIFY_BASE_URL=\"https://api.dify.ai/v1\"  # オプション\n\n# スクリプトを実行\n./scripts/run-dify-workflow.sh\n```\n\n#### 自動実行の確認\n- ワークフローは毎日日本時間06:00に自動実行されます\n- 実行結果はGitHubの `Actions` タブで確認できます\n\n#### 手動実行の方法\n1. GitHubリポジトリの `Actions` タブに移動\n2. `Daily Dify Workflow Execution` ワークフローを選択\n3. `Run workflow` ボタンをクリック\n4. `Run workflow` を再度クリックして実行\n\n## ワークフローの詳細\n\n### 入力パラメータ\n\nワークフローでは以下のパラメータがDifyに送信されます:\n\n```json\n{\n  \"inputs\": {\n    \"daily_trigger\": \"2024-01-15 06:00:00 JST\",\n    \"execution_context\": \"GitHub Actions Daily Run\"\n  },\n  \"response_mode\": \"blocking\",\n  \"user\": \"github-actions-bot\"\n}\n```\n\n### カスタマイズ\n\nワークフローをカスタマイズする場合は、以下のファイルを編集してください:\n\n1. **実行時間の変更**:\n   `.github/workflows/daily-dify-workflow.yml` の cron スケジュール\n   ```yaml\n   schedule:\n     - cron: '0 21 * * *'  # UTC時間で指定\n   ```\n\n2. **入力パラメータの変更**:\n   `scripts/run-dify-workflow.sh` の JSON ペイロード部分\n\n### エラー対応\n\n#### よくあるエラー\n\n1. **DIFY_API_KEY environment variable is not set**\n   - GitHub SecretsでDIFY_API_KEYが設定されていません\n   - 上記のセットアップ手順に従ってAPIキーを設定してください\n\n2. **HTTP 401 Unauthorized**\n   - APIキーが無効か、権限が不足しています\n   - Difyコンソールで新しいAPIキーを生成し、Secretsを更新してください\n\n3. **HTTP 404 Not Found**\n   - ワークフローエンドポイントが見つかりません\n   - DIFY_BASE_URLが正しく設定されているか確認してください\n   - ワークフローアプリケーションが正しく公開されているか確認してください\n\n#### ログの確認方法\n\n1. GitHubの `Actions` タブに移動\n2. 失敗したワークフロー実行をクリック\n3. `execute-dify-workflow` ジョブをクリック\n4. エラーメッセージとレスポンス内容を確認\n\n## セキュリティ上の注意\n\n- APIキーは必ずGitHub Secretsを使用して管理してください\n- APIキーをコードやログに直接記載しないでください\n- 定期的にAPIキーをローテーションすることを推奨します\n\n## 関連リンク\n\n- [Dify API Documentation](https://docs.dify.ai/)\n- [GitHub Actions Documentation](https://docs.github.com/en/actions)\n- [GitHub Secrets Documentation](https://docs.github.com/en/actions/security-guides/encrypted-secrets)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fks6088ts-labs%2Fworkshop-dify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fks6088ts-labs%2Fworkshop-dify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fks6088ts-labs%2Fworkshop-dify/lists"}