From 182a395c17d64c7dbdc17f9ff16627a8753f7879 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Fri, 19 Apr 2024 12:19:45 +0100 Subject: [PATCH 1/2] Composer: avoid writing a lock file --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 70b38a17..7f644b12 100644 --- a/composer.json +++ b/composer.json @@ -51,6 +51,9 @@ "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Tests\\": "tests/" } }, + "config": { + "lock": false + }, "extra": { "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" }, From ea173e9cc6e2bd2de8326cbb98ab07c17f8b25c0 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Sun, 21 Apr 2024 17:25:41 +0100 Subject: [PATCH 2/2] Enable creation of `composer.lock` file --- .github/workflows/securitycheck.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/securitycheck.yml b/.github/workflows/securitycheck.yml index c6184bd9..ad225bb9 100644 --- a/.github/workflows/securitycheck.yml +++ b/.github/workflows/securitycheck.yml @@ -32,6 +32,9 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - name: Enable creation of `composer.lock` file + run: composer config --unset lock + # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer - name: Install Composer dependencies