Skip to content

About

Switch Trust (by SandboxAQ) GitHub Action to scan & evaluate your code for AI assets.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Switch Trust Inventory Scan

A GitHub Action for using Switch Trust. This action performs static analysis on your code to detect AI assets (such as models, agents, and MCP servers), creating an inventory. This inventory is then sent to your Switch Trust instance, where it's enriched with additional information and analyzed for issues. You can view the results in the Switch Trust web interface. Refer to the Switch Trust user guide for details.

Scans appear in Switch Trust under the GitHub data source. If you also scan GitLab projects with the Switch Trust Inventory Scan CI/CD component, those are reported separately, so the two inventories stay distinguishable.

Configuration

You can configure the Action as shown in the following example::

name: Example workflow for Python using Switch Trust Inventory Scan
on: push
jobs:
  security:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v5
      - name: Run Switch Trust Inventory detection
        uses: sandbox-quantum/switch-trust-codescan-action@7e261a61f4d052c722f0a384c946f571f142dfd1 #v7
        with:
          switch_trust_instance: https://app.switchagents.ai
          switch_trust_token: ${{ secrets.SWITCH_TRUST_TOKEN }}
          llm_model: anthropic:claude-opus-4-8
          llm_api_key: ${{ secrets.LLM_API_KEY }}

Properties

Properties are passed to GitHub Action via explicit with input variables. For security, we strongly recommend using GitHub secrets for the sensitive input variables switch_trust_token and llm_api_key.

Property Required Description
switch_trust_instance yes URL of your Switch Trust instance, e.g. https://app.switchagents.ai
switch_trust_token yes API key for your Switch Trust instance
llm_model yes LLM to use, in the form <provider>:<model>. Supported providers: anthropic, openai, gemini/google (e.g. anthropic:claude-opus-4-8).
llm_api_key yes API key for the provider selected in llm_model. The action forwards it to the scanner under the provider-native name (ANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_API_KEY).

About

Scans the repository contents for AI usage and reports findings back to Switch Trust.

Learn more.

About

Switch Trust (by SandboxAQ) GitHub Action to scan & evaluate your code for AI assets.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors