Commit dccb5f98 authored by GridexX's avatar GridexX
Browse files

feat(php_security_checker): use official docker image



Signed-off-by: default avatarGridexX <arsene582@gmail.com>
parent 9d236819
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
# Changelog
All notable changes to this job will be documented in this file.

## [2.0.0] - 2023-03-02
* Add a new variable `SECURITY_CHECKER_VERSION` to specify the version of Local PHP Security Checker
* Change `IMAGE_TAG` from `php7.4-alpine` to `3.17`
* Change the default image from `jakzal/phpqa` to `alpine`

## [1.1.1] - 2023-02-28
* Fix broken documentation links

+3 −2
Original line number Diff line number Diff line
@@ -16,8 +16,9 @@ This job checks if your PHP application depends on PHP packages with known secur
| Name | Description | Default |
| ---- | ----------- | ------- |
| `COMPOSER_PATH` <img width=100/> | A general variable for this job <img width=175/>| `./composer.lock` <img width=100/>|
| `FORMAT_OUTPUT` <img width=100/> | A variable for the format of the output<img width=175/>| ` ` <img width=100/>|
| `IMAGE_TAG` | The default tag for the docker image | `php7.4-alpine`  |
| `FORMAT_OUTPUT` | A variable for the format of the output | ` ` |
| `SECURITY_CHECKER_VERSION` | The version of Local PHP Security Checker | `2.0.6` |
| `IMAGE_TAG` | The default tag for the docker image | `3.17`  |



+6 −3
Original line number Diff line number Diff line
@@ -3,12 +3,15 @@ stages:

php_security_checker:
  image: 
    name: jakzal/phpqa:${IMAGE_TAG}
    name: alpine:${IMAGE_TAG}
    entrypoint: [""]
  stage: tests
  variables:
    COMPOSER_PATH: "./composer.lock"
    FORMAT_OUTPUT: ""
    IMAGE_TAG: "php7.4-alpine"
    SECURITY_CHECKER_VERSION: "2.0.6"
    IMAGE_TAG: "3.17"
  script:
    - local-php-security-checker  --path="${CI_PROJECT_DIR}/${COMPOSER_PATH}" $FORMAT_OUTPUT
 No newline at end of file
    - wget -O ./local-php-security-checker "https://github.com/fabpot/local-php-security-checker/releases/download/v${SECURITY_CHECKER_VERSION}/local-php-security-checker_${SECURITY_CHECKER_VERSION}_linux_amd64"
    - chmod +x ./local-php-security-checker
    - ./local-php-security-checker  --path="${CI_PROJECT_DIR}/${COMPOSER_PATH}" $FORMAT_OUTPUT
 No newline at end of file