Zum Hauptinhalt springen
Version: v0.20

GitLab CI

Erstellen Sie .gitlab-ci.yml im zu prüfenden Repository:

stages:
- security

amwscan:
stage: security
image:
name: marcocesarato/php-antimalware-scanner:latest
entrypoint: [""]
script:
- mkdir -p amwscan-output
- >-
php /usr/local/bin/scanner "$CI_PROJECT_DIR"
--lite --report-only --report-format=sarif
--path-report="$CI_PROJECT_DIR/amwscan-output/amwscan-report.sarif"
--disable-checksum --disable-definitions-update
artifacts:
when: always
paths:
- amwscan-output/amwscan-report.sarif
expire_in: 30 days

GitLab checkt das Repository innerhalb des Scanner-Images aus. Die Artefakteinstellung when: always bewahrt den SARIF-Bericht, wenn Funde den Exit-Code 1 auslösen.