Laravel Forge

If you're using Laravel Forge to host your site and its deployment feature, here's how you configure automated audits.

First, grab your site's deployment webhook in DeploymentHawk. You'll want to copy the cURL example, which includes the additional branch and commit parameters.

curl https://app.deploymenthawk.com/analyze/site/ID?token=TOKEN \
  -X POST \
  -H 'Accept: application/json' \
  -d 'branch'='main' \
  -d 'commit'='fda7c44c7ae0ee6ea28a6a7a91946deaef37adca'

Update the cURL command to use the Forge environment variables, which will be automatically injected into your deploy script.

curl https://app.deploymenthawk.com/analyze/site/ID?token=TOKEN \
  -X POST \
  -H 'Accept: application/json' \
  -d 'branch'="$FORGE_SITE_BRANCH" \
  -d 'commit'="$FORGE_DEPLOY_COMMIT"

Head to the site in Laravel Forge and visit the App tab. At the end of your Deploy Script, paste the cURL command, and hit Update. Now, whenever you deploy your site in Laravel Forge, an automated audit will be triggered.

Screenshot of Laravel Forge