Bug fix #3
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
# .github/workflows/ci.yml | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
# run: pip install --upgrade pip | |
run: pip install -r requirements.txt | |
# - name: Run pytest | |
# run: pytest | |
- name: Run pylint | |
run: pylint certcheck | |
- name: Install Docker | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install docker.io | |
- name: Run IaC check | |
run: | | |
docker run --rm \ | |
-v $(pwd):/workdir \ | |
g12m0/testcheckov:latest \ | |
-d /workdir |