Skip to content

Commit 6f842ab

Browse files
committed
ci: fix and upgrade workflow
1 parent c6916c3 commit 6f842ab

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ jobs:
5252
extensions: dom, libxml, mbstring, intl, xml, fileinfo, zip
5353
coverage: xdebug
5454

55-
- name: Get composer cache directory
56-
id: composer-cache
57-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
58-
59-
- name: Cache dependencies
60-
uses: actions/cache@v4
61-
with:
62-
path: ${{ steps.composer-cache.outputs.dir }}
63-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
64-
restore-keys: ${{ runner.os }}-composer-
65-
6655
- name: Install dependencies
6756
run: composer install --prefer-dist --no-ansi --no-interaction --no-progress --optimize-autoloader
6857

@@ -79,6 +68,7 @@ jobs:
7968
continue-on-error: ${{ matrix.allow_fail }}
8069

8170
- name: Check for vulnerabilities
71+
if: ${{ contains(matrix.composer_update_flags, '--prefer-lowest') == false }}
8272
run: composer security-checker
8373
continue-on-error: ${{ matrix.allow_fail }}
8474

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
},
5151
"scripts": {
52-
"security-checker": "security-checker security:check"
52+
"security-checker": "security-checker security:check --no-dev"
5353
},
5454
"scripts-descriptions": {
5555
"security-checker": "Checks if your application uses dependencies with known security vulnerabilities."

0 commit comments

Comments
 (0)