Spiral gives your agent every tool with one account. Browse the tools →

Grok Build · E-commerce

How to Use GitHub security advisory in Grok Build

Fetch a known vulnerability's affected packages, version ranges, severity, and references from the GitHub Advisory Database. Use it to investigate a CVE or GHSA and identify a documented patched version.

Prompts to try with GitHub security advisory in Grok Build

Copy an example into Grok Build, or ask in your own words.

Use GitHub security advisory for CVE-2021-44228 and compare the affected package ranges with this project's Maven dependency files.

GitHub security advisoryGrok Build
Try asking
  • Use GitHub security advisory to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from GitHub security advisory and tell me what changed since last week.

  • Check GitHub security advisory and summarize what you find in three bullet points.

  • Pull the newest data from GitHub security advisory and give me the result as a table.

How to set up GitHub security advisory in Grok Build

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Add --scope project to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

    grok mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start grok and run /mcps. Select Spiral and press i. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

  3. Check it
    grok mcp doctor spiral

Use the Spiral skill

  1. Send Grok Build this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GitHub security advisory

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "github-com/repositories/advisory",
        "input": {
          "ghsa_id": "<ghsa_id>"
        }
      }'

Then paste one of the prompts above: Grok Build finds GitHub security advisory on Spiral, shows the price and runs it.

GitHub security advisory providers and prices

Spiral runs GitHub security advisory through Alexandria. Open a card for today's price, with every fee included.

AlexandriaE-commerce
GitHub · Advisory
github-com/repositories/advisory

What can you do with GitHub security advisory in Grok Build?

Build a dependency review beside the code using GitHub files, release notes, issue evidence, and package advisories. A coding agent can compare those records with the project's manifests and turn the findings into proposed changes.

Review a dependency before adoption

Build an adoption brief covering repository status, contribution concentration, license text, issue categories and totals, release history, and reported vulnerability or malware concerns for the exact packages under consideration.

Prepare a dependency upgrade review

Compare the installed version with published releases, read migration files and known issue reports, and check relevant advisories. Include project status and contribution concentration when deciding how much upstream support to expect.

Investigate a reported package incident

Read the advisory and affected package ranges, compare release notes and manifests, then inspect related issue categories, reports, and totals. Keep a documented vulnerability fix separate from a malicious-package report.

Maintain a package security watch

Check a defined package list for malware reports and known advisory changes, then compare repository status, manifests, and published releases with the previous review. Produce a change report with links to the supporting records.

Write a vulnerability remediation brief

Explain a known CVE using its affected ranges, upstream files, and release notes. Check malicious-package reports separately and identify whether the evidence supports an upgrade or removing the package.

Questions about GitHub security advisory in Grok Build

Can Grok Build use GitHub security advisory?

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run GitHub security advisory like any built-in tool.

How much does GitHub security advisory cost in Grok Build?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok Build plan is separate.

Do I need an Alexandria account to use GitHub security advisory in Grok Build?

No. Spiral runs GitHub security advisory on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up GitHub security advisory in Grok Build?

About two minutes: add the server, then sign in, then check it.

Does Grok Build wait while GitHub security advisory runs?

GitHub security advisory runs in the background. Grok Build starts the run, checks on it and gives you the json when it's ready.

Can I reuse anything that is public on GitHub?

Public visibility alone does not grant unrestricted reuse. GitHub says that without a license, default copyright restrictions apply to source code; its Advisory Database has a separate CC BY 4.0 license.

How current is GitHub's data?

Freshness depends on the record. Contributor results can be a few hours old because GitHub caches them, while a file selected by branch can change whenever new commits arrive.

Does a GitHub release history include every version tag?

No. GitHub excludes Git tags that have no associated release, and its latest-release lookup excludes prereleases and drafts.

Do GitHub issues include pull requests?

GitHub's underlying issue responses can contain both, with pull requests identified separately. An issue-only backlog should exclude pull requests before its totals are compared.

Where do GitHub's malware reports come from?

GitHub automatically publishes malware advisories from the npm security team and the OpenSSF Malicious Packages repository. These reports concern malicious packages and are separate from ordinary vulnerability advisories.

Get started

Start using GitHub security advisory in Grok Build

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok Build:

Set up Grok Build

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options