Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Oct 15, 2023
2 parents 0d00111 + 07839a7 commit d8cd40a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/build-and-push-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,52 @@ jobs:
steps:
-
name: Check out the codebase
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get version from version file
-
name: Get version from version file
run: |
VERSION=$(cat version)
echo "VERSION=$VERSION" >> $GITHUB_ENV
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and Export Database Container to Docker
uses: docker/build-push-action@v5
with:
context: .
file: ./database/Dockerfile
load: true
tags: webpwnized/mutillidae:database

-
name: Run Trivy vulnerability scanner on Database Container
uses: aquasecurity/trivy-action@master
with:
image-ref: 'webpwnized/mutillidae:database'
format: 'sarif'
output: 'database-trivy-results.sarif'

-
name: Upload Database Container Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'database-trivy-results.sarif'

-
name: Build and push database container
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.47
1.0.48

0 comments on commit d8cd40a

Please sign in to comment.