Requirements: GitHub repository containing Python agent codeSupported frameworks: Google ADK, Google GenAI, Anthropic, OpenAI, OpenAI Agents SDK, LangGraph, CrewAI, AutoGen, HuggingFace Transformers, HuggingFace smolagents
Set up GitHub Action
Log into Flint AI and configure the GitHub Action to scan your repository.What does the GitHub Action do?
What does the GitHub Action do?
The GitHub Action scans your repository for AI agents, finds security issues and misconfigurations, and sends results to your workspace. It runs on a schedule you configure (for example, daily) and keeps your inventory current as code changes.The Action requires only read access to your code and does not modify your repository.
1
Get your credentials
Navigate to Settings > Data sources and select GitHub, then open the Setup tab. You’ll need two values:
-
FLINTAI_INSTANCE - Your instance URL (shown in the Setup tab)
- FLINTAI_TOKEN - Use an existing Flint AI API token, or create one now if you don’t yet have one. Tokens are managed in Settings → API Keys.
Copy your token immediately when created — it will only be shown once.
2
Install the GitHub Action
Install
sandbox-quantum/aispm-inventory-action from the GitHub Marketplace and add it to your repository’s workflow.3
Store your token as a GitHub secret
In your repository (or organization) settings, go to Secrets and variables → Actions.Add a secret named
FLINTAI_TOKEN with the token you generated in Step 1.Instance URL doesn't need to be secret
Instance URL doesn't need to be secret
Only the token needs to be a secret. Your instance URL isn’t sensitive — pass it to the action’s
flintai_instance input as a plain value.The GitHub Action reads FLINTAI_TOKEN automatically once the secret is set — it maps to the action’s flintai_token input. No extra configuration is needed.4
Configure the scan
The GitHub Action uses AI to analyze your agent code and identify vulnerabilities. In your workflow file, set
LLM_MODEL as an environment variable for the action using provider:model format:5
Add your LLM provider's API key
In your repository settings, go to Secrets and variables → Actions and add your provider’s API key using the standard framework name:The action automatically detects which key is present and passes it to the scanner.
Where to get LLM provider API keys
Where to get LLM provider API keys
- Google Gemini: aistudio.google.com/apikey (free tier available)
- OpenAI: platform.openai.com/api-keys
- Anthropic: console.anthropic.com/settings/keys
View discovered agents
Navigate to the Agents page. Within a few minutes, discovered agents appear in your inventory. For each agent, you can quickly see:- Name - The agent identifier
- Highest severity - The most serious issue found, from critical to low severity
- Issues - The total number of findings
Next steps
Review findings
Understand issues, severity levels, and how to resolve them
Monitor and protect
Install the SDK to monitor sessions and configure runtime protection