Skip to content

Commit

Permalink
Merge pull request #2 from Mahesh-Binayak/develop
Browse files Browse the repository at this point in the history
[MOSIP-29854]Adding databreachdetector
  • Loading branch information
Mahesh-Binayak authored Jan 11, 2024
2 parents 7bb822e + 3cbe423 commit f45988d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Docker Image

on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file DataBreachDetector/Dockerfile --tag databreachdetector:$(date +%s)
6 changes: 3 additions & 3 deletions Dockerfile → DataBreachDetector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ENV s3-user-key=
ENV s3-user-secret=
ENV s3-bucket-name=

COPY requirements.txt .
COPY DataBreachDetector/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY mosipvaluefinder.py .
CMD ["python", "mosipvaluefinder.py"]
COPY DataBreachDetector/databreachdetector.py .
CMD ["python", "databreachdetector.py"]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def deduce_sensitive_data_in_databases():

connection = psycopg2.connect(
host='postgres.dev.mosip.net',
port=5432,
user='postgres',
password='mQi298ZW7p',
database=databases[0]['name']
Expand Down
File renamed without changes.

0 comments on commit f45988d

Please sign in to comment.