Skip to content

Commit

Permalink
Dockerfile | requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilBaah committed Mar 2, 2024
1 parent 6172ed1 commit e377835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/devsecops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -71,29 +65,15 @@ jobs:
- name: Scan for Secrets with Trufflehog
run: |
trufflehog3 --no-history --format json --output report.json --exclude "env/*"
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Build and Push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/bookstore

- name: Image digest
run: echo $ {{ steps.docker_build.outputs.digest }}
- name: Build an image from Dockerfile
run: |
docker build -t built-image:scan .
- name: Run dockle
uses: goodwithtech/dockle-action@main
with:
image: 'steps.docker_build.outputs.digest'
image: 'built-image:scan'
format: 'list'
exit-code: '1'
exit-level: 'warn'
ignore: 'CIS-DI-0001,DKL-DI-0006'

ignore: 'CIS-DI-0001,DKL-DI-0006'
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ backports.zoneinfo==0.2.1
beautifultable==1.1.0
black==23.1.0
click==8.1.3
colored==2.2.4
Django==4.1.6
django-isbn-field==0.5.3
django-rest-passwordreset==1.3.0
Expand Down

0 comments on commit e377835

Please sign in to comment.