refactor av scan flow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Virus Scan | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
virus-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install ClamAV | |
run: sudo apt-get update && sudo apt-get install -y clamav clamav-daemon | |
- name: Update ClamAV database | |
run: sudo freshclam | |
- name: Scan repository for viruses | |
run: sudo clamscan -r --bell -i . |