Skip to content

Commit

Permalink
1.0.56 Add GitHub Action for Hawkscan
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Nov 5, 2023
1 parent da0b0b7 commit 2a2e93c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/scan-application-with-stackhawk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
- name: Start and Run Containers
run: |
# Install LDAP Utilities including ldapadd
sudo apt-get update
sudo apt-get install -y ldap-utils
# Starting containers using Docker Compose.
docker-compose -f docker-compose.yml up -d;
Expand All @@ -49,14 +53,14 @@ jobs:
# Requesting Mutillidae database be built.
curl http://127.0.0.1/set-up-database.php;
# Install LDAP Utilities including ldapadd
sudo apt-get update
sudo apt-get install -y ldap-utils
# Uploading Mutillidae LDIF file to LDAP directory server.
CURRENT_DIRECTORY=$(pwd);
ldapadd -c -x -D "cn=admin,dc=mutillidae,dc=localhost" -w mutillidae -H ldap:// -f $CURRENT_DIRECTORY/ldap/ldif/mutillidae.ldif;
# ldapadd will exit with the exit code equal to the number of users added into the LDAP directory
# Exit with exit code 0 to prevent the Github Action from failing
exit 0;
# Step 3: Run StackHawk Scan
- name: Run StackHawk Scan with SARIF result
uses: stackhawk/hawkscan-action@v2
Expand Down

0 comments on commit 2a2e93c

Please sign in to comment.