Error "argument --api-host: expected one argument" when running Panther test command in GitHub Actions
Last updated: April 3, 2025
Issue
When running GitHub Actions workflows with the panther_analysis_tool test command, Pull Requests opened by Dependabot consistently fail with error: argument --api-host: expected one argument.
This happens even when API_HOST and API_TOKEN are defined as repository secrets.

Resolution
To fix this, add API_HOST and API_TOKEN as Dependabot secrets, separate from your regular repository secrets. You can follow GitHub’s guide on how to configure secrets for Dependabot.
Cause
This happens because Dependabot doesn’t have access to regular repository or organization secrets by default. Instead, it uses its own set of secrets, which need to be added separately.