← ApiiroCONTENT HISTORY

Update to Apiiro

Snapshot Nov 25, 2026 · 00:22 UTC · version 1.12.0

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Apiiro and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Apiiro inventory: applications, application groups, teams, artifacts, APIs, dependencies, sensitive data, secrets, validity, technologies, modules, SBOMs, contributors, OSS, licenses, incidents, feed, advisories, repositories, SCM tags, monitoring. In ChatGPT use the Apiiro MCP workflows; local CLI workflows require a terminal and user authorization.",
  "included_files": [],
  "name": "guardian-inventory",
  "skill_md_contents": "---\nname: guardian-inventory\ndescription: \"Apiiro inventory: applications, application groups, teams, artifacts, APIs, dependencies, sensitive data, secrets, validity, technologies, modules, SBOMs, contributors, OSS, licenses, incidents, feed, advisories, repositories, SCM tags, monitoring. In ChatGPT use the Apiiro MCP workflows; local CLI workflows require a terminal and user authorization.\"\n---\n\n# Apiiro Inventory\n\n## With the Apiiro MCP tools (ChatGPT and Codex)\n\nRules for every Apiiro action:\n- Use the declared MCP tools and their current schemas. Do not invent tool names or arguments.\n- Never change risks in bulk (accept, dismiss, override or reclassify many at once). Each risk needs its own decision.\n- Before a change, scan or Autofix job, name the exact target and get the user's confirmation; an explicit request naming that action and target supplies that authorization.\n- Keep credentials in the host's sign-in flow. Never read credential files, print tokens, or ask for secrets in chat.\n- Report actual tool results and errors. Do not claim a mutation, scan or fix succeeded before its result confirms it.\n\nResolve the user's repository with `apiiro_repositories`, passing `remote_url` for an exact supplied Git URL and/or `repository_name`. Use the key from one exact match. If matches are ambiguous, ask for the intended repository/branch; if none match, explain the access/setup issue. Never guess a key.\n\n- Use `apiiro_inventory(operation='list')` with the returned `repository_key` and `inventory_type` of `Api`, `Dependency`, `SensitiveData`, `Secret` or `Technology`. Use `operation='get'` with a returned `inventory_key` for detail. Follow returned pagination before claiming completeness.\n- For relationships that inventory does not explicitly establish, use `apiiro_ask` with the same repository key and a specific question. Do not infer that an API handles sensitive data merely because both appear in that repository.\n- Use `apiiro_oss(operation='dependency', purl=...)` for a particular package version, not to establish tenant exposure.\n\n## With the Apiiro CLI (Codex only, optional)\n\nUse these current upstream CLI workflows only in a host with a terminal, when the user requests CLI functionality or no MCP tool supports the task. In ChatGPT explain that CLI-only workflows require a terminal; do not invent matching MCP tools. CLI authentication must go through `apiiro login`; never read credential files or print saved tokens. Do not request secrets in chat or place tokens in command arguments. Follow the upstream safeguards for terminal-only writes. For installation commands, explain them and let the user run them; do not download and execute installers automatically.\n\n### Apiiro Inventory\n\nList inventory items via the Apiiro CLI. Inventory is what Apiiro has mapped in the code (APIs, dependencies, sensitive data, secrets, technologies), independent of whether any of it is risky.\n\n#### List Inventory\n\nRepository is auto-detected from git when no scope flag is given.\n\n```bash\napiiro inventory                                  # Auto-detect repo from git\napiiro inventory --repo my-repo-name              # Specify repo (defaults to its default branch)\napiiro inventory --repo my-repo-name --branch dev # Target a specific monitored branch\napiiro inventory --repository-id <repo-id>        # Target a branch profile directly\napiiro inventory --application-id <app-id>        # Scope to an application\napiiro inventory --entity-type API                # Only APIs\napiiro inventory --entity-type Dependency -o json # Only dependencies, as JSON\napiiro inventory --entity-type SensitiveData      # Sensitive data handling\napiiro inventory --entity-type Secret             # Secrets Apiiro has mapped\napiiro inventory --repo my-repo --max-pages -1    # Fetch every page (default cap: 5)\n```\n\nEntity types: `API`, `Dependency`, `SensitiveData`, `Secret`, `Technology`. The value is passed to the server as-is.\n\n`--type api|dependency|secret|sensitive-data|technology|module` is the short form of `--entity-type`; pass one, not both.\n\nPagination: `--page-size <1..1000>` (default 100), `--max-pages <count>` (default 5, `-1` for all). In JSON, `\"truncated\": true` means the list stopped at `--max-pages`: raise it before you say \"this is everything\".\n\n#### Other Reads\n\nInventory reads and `contributors <key>` print the API's JSON; the contributors list prints text unless `-o json`. Inventory modes reject flags they cannot use.\n\n```bash\napiiro inventory <item-key>                       # One item\napiiro inventory --type module --repo my-repo     # Modules (no paging)\napiiro inventory --deleted --since 2026-10-01     # Deleted since a date (kept 30 days); takes --type, --application-id\napiiro inventory --secret <sha>                   # A secret's validity override (sha = secretDigest)\napiiro inventory sbom --repository-id <repo-id>   # SBOM; or --application-id; --format cyclonedx|spdx; -f to save\napiiro contributors                               # Contributors, 5 pages by default; -o json\napiiro contributors <key>                         # One contributor\napiiro contributors --export -f contributors.jsonl  # Every contributor as JSON Lines\n```\n\nThe contributors list fails with \"not enabled for this organization\" when the contributors API is off. An older CLI ignores `<item-key>` and `sbom` and lists inventory instead; it prints `unknown option` for `--type`, `--deleted` and `--secret`, and `unknown command` for `contributors` and `secrets`. Then tell the user to update the CLI.\n\n#### Change a Secret's Validity\n\nThis writes to Apiiro. Run it only when the user asks. Your shell cannot answer the CLI's question: without a terminal it sends nothing and exits 130. So show the user the exact command, wait for their approval in chat, then run it with `--yes`. The change applies to every occurrence of the same secret value.\n\n```bash\napiiro secrets update <sha> --validity invalid --reason \"Rotated on 2026-10-01\"\napiiro secrets update <sha> --validity valid\napiiro secrets update <sha> --validity auto       # Clear the override; the secret goes back to Apiiro's own result\n```\n\n`--reason` is at most 500 characters and does not apply to `auto`.\n\n#### Artifacts\n\nArtifact lists take `--page-size` 1–200, default 100.\n\n```bash\napiiro artifacts\napiiro artifacts --type Sbom --application-id <app-id> --team-id <team-id>\napiiro artifacts <artifact-id>                   # Versions\napiiro artifacts <artifact-id> --risks           # Risks of one artifact\napiiro artifacts --container-images              # Container images from the v1 API\napiiro artifacts --import <import-id>            # Import status\napiiro artifacts import --file sbom.json --version 1.0 --name my-sbom --application-id <app-id> --yes\napiiro artifacts import --file sbom.json --version 2.0 --artifact <artifact-id> --yes\napiiro artifacts delete <artifact-id>\napiiro artifacts delete <artifact-id> --version <version-id>\napiiro artifacts delete <artifact-id> -o json     # id, version (null for whole artifact), deleted\n```\n\n`--risks` requires an artifact ID. `--container-images` selects the v1 container image list and accepts paging and output options only. Both return text rows by default, or `items` and `truncated` with `-o json`. Use `--page-size` (1–200) and `--max-pages` to control paging. SBOM imports stream files up to 512 MB.\n\nImporting asks before sending; use `--yes` only after the user approves the exact command. `artifacts delete` is for SBOM artifacts only and permanently deletes versions, dependencies and findings. Like `api call`, always hand the delete command to the user to run in a terminal and type the artifact ID. Agents must never answer this prompt or bypass it.\n\nArtifact commands accept `-o json` and `-f <output-path>` before or after the subcommand. Import uses `--file` for the SBOM input and `-f`/`--output-file` for saved output. With `--version`, delete removes only that version and names it in the confirmation prompt. Empty artifact IDs and versions fail before confirmation.\n\n#### OSS, Incidents, Feed and Custom Advisories\n\nUse these for vulnerability or package content and organization-wide security incidents. They need \"Full control\" read permission, with write permission for advisory changes. Custom advisories require the CustomAdvisories feature enabled.\n\n```bash\napiiro oss CVE-2021-44228\napiiro oss 'pkg:npm/lodash@4.17.20'\napiiro oss 'pkg:npm/lodash' --license              # IDs, source, source URLs\napiiro oss 'pkg:npm/lodash' --license --full       # Full license text (also in JSON)\napiiro incidents\napiiro incidents <id>\napiiro incidents <id> --scope --since 2026-10-01\napiiro feed --repo <key> --application <key> --team <key> --status Followed\napiiro feed --questions --type Announcement\napiiro advisories\napiiro advisories <id>\napiiro advisories update --input advisory.json\napiiro advisories delete <id>\n```\n\nAll accept `-o json|text` and `-f <file>` for output. CVE input is uppercased; JSON merges CVE fields with `epss`. Package JSON is `{package, dependency}`. `--license` needs a package URL; `--full` needs `--license`.\n\nLists default to `--page-size 100 --max-pages 5`. Max page size: 100 for incidents/scope, 1000 for feed/advisories. `--max-pages -1` fetches all. A JSON list is `{items, truncated}`; check `truncated` before claiming completeness. Single incident/advisory reads reject paging. Incidents have no list filters. `--since` needs an incident ID and `--scope`.\n\nFeed key flags scope counts and do not hide items. Status is `ForYou|Followed|Dismissed`; the server default `ForYou` includes followed items. `--questions` accepts status and `--type Manual|Seed|Announcement`, rejects paging and key flags, and returns a raw array in JSON. Text leaves out `insightPredicate` and `ruleTarget`.\n\nAdvisory update creates or replaces the whole advisory: omitted fields reset and affected packages are re-scored. The input must contain `advisoryId`; the server validates the other fields. Update accepts `--yes`. As with secret writes, show the exact update and get approval in chat before using `--yes`. Deletion requires the user to type the exact advisory ID in a terminal and has no `--yes`. Show the delete command for the user to run. Both writes send nothing without confirmation. `--input` reads the body; `-f` saves the output.\n\n#### Choosing the right command\n\n- \"What does this repo contain / expose / depend on\" → `apiiro inventory`.\n- \"Who works on this code\" → `apiiro contributors`.\n- \"List or import SBOM artifacts / check import status\" → `apiiro artifacts`.\n- \"What is risky / vulnerable / a finding\" → `apiiro risks` (guardian-risks skill).\n- \"Scan my changes for secrets right now\" → `apiiro fast-scan secrets` (guardian-scan skill).\n\n#### Global Options\n\n`-o, --output <json|text>`, `--json`, `-f, --file <path>`, `--remote <name>`, `--repository-key <key>`, `--timeout <seconds>`, `--no-color`.\n\nOnly run writes when the user asks. Show the exact create or update command, get approval in chat, then use `--yes`. Ask the user to run deletes in their terminal. `--set` always sends a string. Use repeatable `--set-json field=json` for JSON values; invalid JSON is rejected before sending.\n\n#### Applications and Application Groups\n\n```bash\napiiro applications --page-size 100 --max-pages 5 -o json\napiiro applications <key>\napiiro applications create --data @application.json\napiiro applications update <key> --set name=Payments --set businessImpact=High --set-json isInternetFacing=true --add-tag team:payments --remove-tag old\napiiro applications delete <key>\napiiro application-groups --page-size 100 --max-pages 5 -o json\napiiro application-groups <key>\napiiro application-groups create --data '{\"name\":\"Payments\",\"tags\":[],\"applications\":[\"app-key\"],\"pointsOfContact\":[]}'\napiiro application-groups update <key> --data @group.json\napiiro application-groups delete <key>\n```\n\nLists default to 100 items per page and 5 pages; `--max-pages -1` fetches all pages. JSON includes `items` and `truncated`; raise `--max-pages` when truncated. Create and update ask before sending; `--yes` skips that question. Deletes always require the exact key typed in a terminal. Application updates send one JSON Patch; a partial update reports failed fields and exits non-zero. Group updates replace the full body and require at least one application key.\n\n#### Teams\n\n```bash\napiiro teams --page-size 100 --max-pages 5 -o json\napiiro teams <key>\napiiro teams create --data @team.json\napiiro teams update <key> --set name=Payments --set parentKey=parent-team --add-tag owner:payments --remove-tag old\napiiro teams delete <key>\n```\n\nTeams page, update and delete like applications. Text shows the key, name and parent key. Deleting a team clears the parent key of its child teams and removes the roles scoped to it.\n\n#### Repositories\n\n```bash\napiiro repositories --page-size 100 --max-pages 5 -o json\napiiro repositories <key-or-name>\napiiro repositories https://github.com/org/repo\napiiro repositories --detect                 # Detect and verify the current repo\napiiro repositories --clear                  # Clear this repo's cached detection\napiiro repositories --clear --global         # Clear all cached detections\napiiro repositories update <scm-key> --monitor\napiiro repositories update <scm-key> --unmonitor\napiiro repositories update <scm-key> --monitor-branch main\napiiro repositories update <scm-key> --unmonitor-branch old\napiiro repositories update <scm-key> --add-tag team:payments\napiiro repositories update <scm-key> --remove-tag team\napiiro repos update <scm-key> --monitor     # repos is an alias of repositories\napiiro scm-repositories --page-size 100 --max-pages 5 -o json\napiiro scm-repositories <key-or-name>\napiiro scm-repositories --tag team:payments\napiiro scm-repositories <scm-key> -o json      # Only tags, as a JSON array\napiiro scm-repositories update <scm-key> --monitor\napiiro scm-repositories update <scm-key> --unmonitor\napiiro scm-repositories update <scm-key> --monitor-branch main\napiiro scm-repositories update <scm-key> --unmonitor-branch old\napiiro scm-repositories update <scm-key> --add-tag team:payments\napiiro scm-repositories update <scm-key> --remove-tag team\n```\n\n`repositories` lists monitored branch profiles. A URL (including `git@` URLs) filters by exact repository URL; other values try a key first, then an exact name after a 404. A key lookup prints the API's JSON object. `scm-repositories` lists SCM records; a value first tries an SCM key and prints its tags (a JSON array with `-o json`), then searches by name after a 404. A name matches part of the name, without case, and `--tag name:value` lists the records that carry that tag (split on the first `:`). A name or key lookup with no matches exits 1; an empty tag search prints `0 SCM repository(s)` and exits 0. A key that starts with `-` goes after `--`, for example `apiiro repositories -- -AbC123`.\n\nLists default to 100 items per page and 5 pages; `--max-pages -1` fetches all pages. JSON lists include `items` and `truncated`. `--tag` cannot be combined with a repository argument. `--detect` and `--clear` take no repository argument and no paging flags; `--global` requires `--clear`. Detection failures exit 2. `--detect -o json` returns `{ \"success\": true, \"data\": { \"name\": \"...\", \"key\": \"...\", \"url\": \"...\", \"branch\": \"...\" }, \"metadata\": { \"timestamp\": \"...\" } }`.\n\n`repositories update` (also `repos update`) and `scm-repositories update` use the same SCM repository key, options and SCM routes. Updates take exactly one change per run and ask before sending; `--yes` skips the question. `--add-tag` uses the same `name:value` form as `--tag`. Updates print the response JSON, or a success message for an empty response.\n\nOnly run SCM updates when the user asks. Show the exact command, get approval in chat, then use `--yes`.\n"
}

SHA-256 of public snapshot: a393c9af7605e1ed1213afd686bb49d379365dc42887dd3edc74623c4a282920