$ show php-actions/composer
This repository provides a GitHub Action to run Composer commands within a Docker container. It wraps the Composer CLI, allowing users to specify a command (default `install`), PHP version, Composer version, and various flags like `--no-dev`, `--no-progress`, and `--no-interaction`. The action downloads the appropriate Composer PHAR from getcomposer.org, sets up SSH keys for private repositories if provided, and executes the command inside a Docker container based on the php-actions/php-build image. The workspace is mounted at `/app`. The implementation is a single composite action with a bash script that handles argument parsing, SSH key setup, and Docker execution. It is a straightforward, well-documented action that solves the common problem of running Composer in CI pipelines. No reusable components beyond the action itself exist; the bash script is tightly coupled to GitHub Actions and Docker.
The LLM identified 1 files worth highlighting for reuse:
The core implementation script that downloads the Composer PHAR, builds the command string from inputs, sets up SSH keys, and runs the command inside a Docker container. It demonstrates a clean pattern for wrapping CLI tools in GitHub Actions, but is tightly coupled to the action's environment and not reusable outside this context.