Skip to content

Commit 71aa09a

Browse files
alongoszclaude
andcommitted
[GHA][REST integration] Applied Composer audit ignores inside tested package
Audit ignores were only ever configured on the workflow checkout, which becomes vendor/ibexa/rest solely when this callable runs in ibexa/rest itself. For external callers (e.g. ibexa/http-cache) the checkout is the caller's package and vendor/ibexa/rest comes pristine from the 4.6 branch, so its composer update hit Composer 2.10's advisory blocking on PHP 7.4 (unsolvable twig/guzzle advisories on EOL PHP). Applying the ignores inside vendor/ibexa/rest covers every caller and makes the runner-side audit ignores step redundant, hence it's dropped. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 648b362 commit 71aa09a

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/integration-tests-callable.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ jobs:
4545
coverage: none
4646
github-token: ${{ steps.generate_token.outputs.token }}
4747

48-
- name: Ignore unsolvable advisories for PHP versions past EOL
49-
uses: ibexa/gh-workflows/actions/composer-audit-ignore@main
50-
with:
51-
php-version: '${{ matrix.php }}'
52-
5348
- name: Cache dependencies
5449
uses: actions/cache@v6
5550
with:
@@ -76,7 +71,20 @@ jobs:
7671
cd "$HOME/build/project"
7772
docker compose --env-file=.env exec -T --user www-data app sh -c "APP_ENV=behat php bin/console ibexa:behat:create-language 'pol-PL' 'Polish (polski)'"
7873
74+
- name: Configure Composer audit ignores inside the tested package
75+
run: |
76+
cd "$HOME/build/project"
77+
docker compose --env-file=.env exec -T --user www-data app sh -c "
78+
cd vendor/ibexa/rest &&
79+
curl -fsSLO https://raw.githubusercontent.com/ibexa/ci-scripts/main/bin/_common/configure_composer_audit_ignores.sh &&
80+
bash configure_composer_audit_ignores.sh
81+
"
82+
7983
- name: Run tests
8084
run: |
8185
cd "$HOME/build/project"
82-
docker compose --env-file=.env exec -T --user www-data -e EZP_TEST_REST_HOST=$WEB_HOST app sh -c "cd vendor/ibexa/rest && composer update && composer test-functional"
86+
docker compose --env-file=.env exec -T --user www-data -e EZP_TEST_REST_HOST=$WEB_HOST app sh -c "
87+
cd vendor/ibexa/rest &&
88+
composer update &&
89+
composer test-functional
90+
"

0 commit comments

Comments
 (0)