Skip to content

Commit c7b4e64

Browse files
authored
Merge pull request #229 from fredden/feature/security-check-no-dev
Ignore development-only packages in security check
2 parents 725b0a3 + b3c04f4 commit c7b4e64

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/securitycheck.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@ jobs:
3535
php-version: ${{ matrix.php }}
3636
coverage: none
3737

38-
- name: Enable creation of `composer.lock` file
39-
run: composer config --unset lock
40-
4138
# Install dependencies and handle caching in one go.
4239
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
4340
- name: Install Composer dependencies
4441
uses: "ramsey/composer-install@v3"
4542
with:
4643
# Bust the cache at least once a month - output format: YYYY-MM.
4744
custom-cache-suffix: $(date -u "+%Y-%m")
45+
# Ignore development-only packages in security check
46+
composer-options: "--no-dev"
4847

4948
- name: Download security checker
5049
# yamllint disable-line rule:line-length
@@ -54,4 +53,4 @@ jobs:
5453
run: chmod +x ./local-php-security-checker_2.0.6_linux_amd64
5554

5655
- name: Check against insecure dependencies
57-
run: ./local-php-security-checker_2.0.6_linux_amd64 --path=composer.lock
56+
run: ./local-php-security-checker_2.0.6_linux_amd64 --path=vendor/composer/installed.json

0 commit comments

Comments
 (0)