Merged
Conversation
Node.js・pnpm のセットアップ、pnpm ストアキャッシュ、依存関係インストールを 一括実行する Composite Action を実装
Playwright ブラウザをキャッシュ付きでインストールする Composite Action を実装 キャッシュヒット時はブラウザのダウンロードをスキップする
ワークフロー成功時に Slack の chat.postMessage API へ通知する Composite Action を実装 env 経由でのテンプレートインジェクション対策、jq による安全な JSON 構築、 スレッド返信(thread-ts)対応を含む
ワークフロー失敗時に Slack の Incoming Webhook URL へ通知する Composite Action を実装 env 経由でのテンプレートインジェクション対策、jq による安全な JSON 構築を含む slack-notify-success と異なり Incoming Webhook 方式のため channel 指定不要
実際の Composite Actions が追加されたため、ディレクトリ管理用の .gitkeep は不要
各 Composite Action の使用方法・入力パラメータ一覧を追記 pnpm-setup / playwright-setup / slack-notify-success / slack-notify-failure の 詳細を Coming soon. から置き換え
tasks.md, design.md, requirements.md を追加
zizmor の "dangerous use of environment file" エラーを修正 GITHUB_ENV への書き込みの代わりに GITHUB_OUTPUT を使用し、 後続ステップで steps.pnpm-store.outputs.store-path として参照する方式に変更
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
.github/composite/配下に以下の4つの Composite Actions を実装しました。pnpm-setup: Node.js・pnpm のセットアップ、pnpm ストアキャッシュ、依存関係インストールを一括実行playwright-setup: Playwright ブラウザをキャッシュ付きでインストールslack-notify-success: ワークフロー成功時に Slack のchat.postMessageAPI へ通知(Bot OAuth Token 認証)slack-notify-failure: ワークフロー失敗時に Slack の Incoming Webhook URL へ通知変更内容
.github/composite/pnpm-setup/action.yml新規作成.github/composite/playwright-setup/action.yml新規作成.github/composite/slack-notify-success/action.yml新規作成.github/composite/slack-notify-failure/action.yml新規作成.github/composite/.gitkeep削除(実際の Action 追加により不要)README.mdの### Composite Actionsセクションを更新(Coming soon.から各 Action の詳細に変更)セキュリティ対応
uses:は全て full commit SHA(40文字)でピン留め(ghalint / zizmor 対応)${{ inputs.xxx }}をrun:に直接埋め込まず、全てenv:経由で渡す(テンプレートインジェクション対策)jqによる安全な JSON 構築(JSONインジェクション対策)runステップにはshell: bashを必ず明記チェックリスト
uses:が40文字 SHA + コメントの形式になっているenv:経由でのテンプレートインジェクション対策が施されている### Composite Actionsセクションを更新した