2023-02-17 12:19:49 +00:00
|
|
|
composer-security:
|
|
|
|
|
stage: security
|
2026-08-21 12:37:08 +02:00
|
|
|
image: composer:2.10
|
2026-08-21 15:19:30 +02:00
|
|
|
before_script:
|
|
|
|
|
- composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD
|
2023-02-17 12:19:49 +00:00
|
|
|
script:
|
2026-08-21 12:37:08 +02:00
|
|
|
- composer audit --locked --format=json > composer-security-checker-report.json || true
|
2023-02-17 12:19:49 +00:00
|
|
|
artifacts:
|
|
|
|
|
when: on_failure
|
|
|
|
|
expose_as: 'composer-security-checker'
|
|
|
|
|
paths:
|
|
|
|
|
- composer-security-checker-report.json
|
|
|
|
|
allow_failure: true
|
|
|
|
|
rules:
|
|
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
2023-03-03 14:18:27 +00:00
|
|
|
- if: $CI_COMMIT_BRANCH == "trunk" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"
|
2023-03-02 17:29:29 +00:00
|
|
|
- if: $CI_COMMIT_TAG != null
|