Commit af072a78 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'feat/normalize-reports' into 'master'

Normalize reports

See merge request to-be-continuous/testssl!23
parents 609536be 65a1531f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -28,6 +28,12 @@ It uses the following variable:
| `TESTSSL_URL`   | Server url to test TLS/SSL against       | _none_ (auto evaluated: see below) |
| `REVIEW_ENABLED`| Set to `true` to enable Test SSL tests on review environments (dynamic environments instantiated on development branches) | _none_ (disabled) |

In addition to a textual report in the console, this job produces the following reports, kept for one day:

| Report         | Format                                                                       | Usage             |
| -------------- | ---------------------------------------------------------------------------- | ----------------- |
| `reports/testssl.native.json` | testssl.sh JSON format | [DefectDojo integration](https://defectdojo.github.io/django-DefectDojo/integrations/parsers/#testssl-scan) |

### test url auto evaluation

By default, the Test SSL template tries to auto-evaluates the server url to test by looking either for a
+3 −3
Original line number Diff line number Diff line
@@ -237,13 +237,13 @@ testssl:
    # retrieve server url to test from 'environment_url.txt' file
    - eval_env_url
  script:
    - mkdir -p reports
    - testssl.sh --jsonfile reports/ --htmlfile reports/ ${TRACE+--debug 2} $TESTSSL_ARGS $TESTSSL_URL
    - mkdir -p -m 777 reports
    - testssl.sh --jsonfile reports/testssl.native.json ${TRACE+--debug 2} $TESTSSL_ARGS $TESTSSL_URL
  artifacts:
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
    when: always
    paths:
      - reports/
      - "reports/testssl.*"
    expire_in: 1 day
  rules:
    - !reference [.acceptance-policy, rules]