build(deps): bump actions/setup-python from 4 to 5 #59
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: Container CI pipeline | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out PeekabooAV-Installer under $GITHUB_WORKSPACE | |
- name: Checkout PeekabooAV-Installer | |
uses: actions/checkout@v3 | |
with: | |
repository: scVENUS/PeekabooAV-Installer | |
# put PeekabooAV below that as expected by the installer | |
- name: Checkout PeekabooAV | |
uses: actions/checkout@v3 | |
with: | |
path: PeekabooAV | |
- name: Install tools | |
run: | | |
sudo apt-get update | |
sudo apt-get install swaks | |
- name: Bring up the environment | |
run: docker-compose up --build --detach | |
- name: Submit test job | |
run: | | |
# note the glob | |
tf="/opt/peekaboo/lib/python*/site-packages/peekaboo/server.py" | |
docker-compose exec -T peekabooav /bin/sh -c \ | |
"/opt/peekaboo/bin/peekaboo-util scan-file -f $tf" | \ | |
grep file.has.been.categorized.*bad | |
- name: Bring down the environment | |
run: docker-compose down |