Skip to content

Commit

Permalink
Added CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
h4r5h1t committed May 12, 2023
1 parent 85229e1 commit cc85fa8
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# .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 -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
4 changes: 2 additions & 2 deletions certcheck/certcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import datetime
import json
import asyncio
import OpenSSL
from ocspchecker import ocspchecker
from typing import List, Dict
from argparse import ArgumentParser, ArgumentError
import OpenSSL
from ocspchecker import ocspchecker
from furl import furl

async def get_ssl_info(hostname, port, debug:bool=False):
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
furl==2.1.3
sslyze==5.1.1
pyOpenSSL==20.0.0
pyOpenSSL==23.1.0
pytest==7.2.1
pylint-exit==1.2.0
pytest-asyncio==0.20.3
pytest-asyncio==0.20.3
ocsp-checker==1.9.11

0 comments on commit cc85fa8

Please sign in to comment.