Skip to content

fix: Dockerfile to reduce vulnerabilities #66

fix: Dockerfile to reduce vulnerabilities

fix: Dockerfile to reduce vulnerabilities #66

Workflow file for this run

name: TestCov
on: [push]
env:
IMAGE_NAME: netbox-scanner
NETBOX_ADDRESS: http://test:8000
NETBOX_TOKEN: 12345
jobs:
test:
name: Coverage code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Install nmap
run: sudo apt-get install nmap
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pip install -r requirements.txt
pytest --cov=./ --cov-report=xml
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true