How to analyze Solana programs directly from GitHub repositories
GitHub Repository analysis allows you to analyze Solana programs stored in GitHub repositories without downloading or uploading any files. This is the recommended method for projects that are already hosted on GitHub, as it provides the most seamless experience.
To analyze a GitHub repository, you need:
From the Dashboard, click on "New Analysis" and select "GitHub Repository" as your analysis source.
Enter the following information:
https://github.com/username/repo-name
)If your repository is private, you'll need to provide a GitHub access token with read permissions.
public_repo
repo
Your GitHub access token grants read access to repositories. Keep it secure and don't share it. Believe Security uses your token only for the specific analysis session and does not store it long-term.
Click "Start Analysis" to begin. Believe Security will:
You can customize your GitHub repository analysis with these advanced options:
Believe Security supports GitHub Enterprise instances. To use this feature:
https://github.example.com
)For monorepos or repositories with multiple Solana programs, you can:
If you encounter a "Repository not found" error:
If Believe Security can't locate a Cargo.toml file:
If you're having issues with your GitHub access token: