How can I verify if the Panther Analysis Tool (PAT) is using the .env variables?

Last updated: April 9, 2025

QUESTION

How can I verify if the Panther Analysis Tool (PAT) is using the .env variables or just running tests locally?

ANSWER

If you want to ensure that your Panther Analysis Tool (PAT) actions are executed on your instance (and not just locally), you can explicitly set the variables in your command running pipenv run panther_analysis_tool test --api-host $API_HOST --api-token $API_TOKEN and replace these placeholders with your .env variable values. This ensures the proper configurations are applied.

If you're unsure whether your .env file is being picked up correctly, you can refer to the Environment Variables Workflow in the documentation. The PAT Configuration File section also provides a sample setup you can compare against your own to validate everything is in place.

Manually passing the variables in your command is the most reliable way to avoid configuration issues and ensure consistent behavior.