Automatic dependency updates for Composer - tailor-made for PHP. Apply security patches within minutes and never worry about being too far behind on updates again.
Configure this GitHub Action for Conductor to run Composer updates in your CI environment.
The GitHub Action requires a Private Packagist account. Follow our setup guide to get started.
PHP and Composer are required and can be setup using the Setup PHP GitHub Action.
Supported are PHP >= 7.2 and Composer >= 2.7.0.
The GitHub Action gets triggered via the dependency_update
repository_dispatch event and requires content:write
permissions
to commit any changes made by the composer update
command using the GitHub API. The GitHub Action can then be used as a step within a job.
Create any config files and start any services that are required to run composer install/update
before the Conductor step.
on:
repository_dispatch:
types:
- dependency_update
name: Private Packagist Conductor
permissions:
contents: write
jobs:
conductor:
name: Private Packagist Conductor
runs-on: "ubuntu-latest"
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: "shivammathur/setup-php@v2"
with:
php-version: "latest"
# Set up any necessary config files or database here before composer install is run
- name: "Running Conductor"
uses: packagist/conductor-github-action
The file_pattern
input parameter allows you to configure which changed files should be included as part of the commit
created by the GitHub action.
For example:
- uses: packagist/conductor-github-action
with:
file_pattern: "composer.*"
The GitHub Action is licensed under the MIT License.