sbomify logo

How do I create an API token in sbomify?

Walkthrough

Transcript

API tokens connect sbomify to your tools, including the AI agents you work with. Here is how to make a token for a coding agent. API tokens live in Settings. They are personal, so other members cannot see or manage yours. Name it after the agent that will use it. Besides full access, there are three presets. Publish only is made for CI uploads. Read-only reads and changes nothing. For a coding agent like Claude Code or Cursor, pick AI agent, and read what it allows. The agent can read fix prompts and send VEX rulings. Nothing it sends changes your vulnerabilities until someone approves it, and its rulings are marked as coming from an AI agent. It can draft and edit security advisories, but it cannot publish, withdraw or delete them. Nothing it writes reaches your Trust Center until a person publishes it. Give it a short life. This one expires in 30 days. sbomify shows the token only once. Copy it, and hand it to your agent as a secret, never in your code. Agents like Claude Code connect to sbomify's MCP server with it. Add the server to the agent's settings, with the token as its key. The agent only sees the tools its token allows, so an AI agent token never gets one that publishes or deletes. The token is listed with when it was last used, and when it expires. When the work is done, delete it. The agent loses access right away. The agent works within what you allow, and a person stays in charge.

Creating a token

API tokens live in Settings, on the API tokens tab. You can also reach it from API keys in the sidebar. Tokens are personal, so other members cannot see or manage yours.

  1. Click Generate token
  2. Enter a Token name that says where it is used, for example GitHub Actions: web-dashboard
  3. Pick the narrowest Access scope that does the job:
    • Publish only (CI/CD upload) is made for CI uploads
    • Read-only reads but changes nothing
    • AI agent reads fix prompts and sends VEX rulings for approval. Nothing it sends changes your vulnerabilities until someone approves it
    • Full access can do everything your role allows
  4. Give it a short Expiration, for example 30 days. The default is 90 days
  5. Click Generate token

sbomify shows the token only once, so copy it now. Store it as a secret in your CI, never in your code. A token can never do more than your own role allows.

Using it in CI

To see where the token goes, open a component, open the Component actions menu, and choose CI/CD integration. The sbomify GitHub Action reads the token from the SBOMIFY_TOKEN secret, and the setup wizard shown there writes the pipeline that uploads your SBOMs.

On GitHub Actions you can skip the token entirely: OIDC trusted publishing trades a short-lived GitHub token for a short-lived sbomify token on every run.

Revoking a token

Back in Settings, your tokens are listed under Your tokens, with when each was last used and when it expires. When you no longer need one, delete it and confirm. It stops working right away, and anything still using it is locked out.

Further reading