Title
Create new category
Edit page index title
Edit category
Edit link
GitHub Actions
This page explains how you can integrate HoundDog.ai's code scanner with GitHub Actions.
Defining GitHub Action Secrets
First, follow the steps in API Keys to generate a HoundDog.ai API key. Then follow the instructions in the GitHub documentation to create a new secret named HOUNDDOG_API_KEY using the value of your key.
Defining the Workflow in hounddog.yml
Next, add a new GitHub Actions workflow file named .github/workflows/hounddog.yml in your repository. Here is an example which scans your repository and uploads the results to HoundDog.ai Cloud Platform:
Here is another example for GitHub Enterprise users who prefer to manage their vulnerabilities using GitHub's Advanced Security instead of HoundDog.ai Cloud Platform:
Blocking the Workflow Upon Detecting Vulnerabilities
In the examples above, we have been using continue_on_error: true to ignore any errors from the scanner. To fail the pipeline upon detecting vulnerabilities, set continue_on_error to false and provide the --fail-severity-threshold option to the hounddog scan command:
To view all available command-line options for the hounddog scan command, see Scanner Configuration.
© 2025 HoundDog.ai, Inc. All rights reserved.