Sample Code for GitLab Pipeline Virus Scanning
The sample code is as follows:
stages:
- build
- clamAV
clamAV clamscan:
stage: clamAV
tags:
- kunpeng_executor
script:
- echo '====== Update the virus database. ======'
- freshclam// If you are a common user, add sudo before the command.
- echo '====== Virus scanning ======'
- clamscan -i -r ./ -l ./clamscan.log// If you are a common user, add sudo before the command.
artifacts:
paths:
- clamscan.log
name: clamscan
Parent topic: Version Release