Scanning¶
The Observes Scanner reads your platform with read-only API calls and writes the results to a scan file, which Observes then ingests. The scanner runs where you choose, with an identity you choose, so credentials never leave your environment.
Let Observes write the configuration for you
In the app, Add platform → Azure DevOps → Set up a scan builds the CLI command from the options you pick. This page explains what those options do.
What an Azure DevOps scan collects¶
- Organisation and project statistics
- Pipelines (YAML and classic), their runs, and preview runs of what each branch would execute
- Classic Release definitions and their release runs
- CI/CD resources: agent pools, deployment pools and groups, environments, service connections, variable groups, secure files, repositories and artifact feeds
- Pipeline permissions on each resource, and each resource's approvals and checks
- Users, groups, RBAC and PAT tokens
- Pipeline settings for the organisation and each project
- SAST findings on pipeline configurations, and the purpose of each job, such as build, test or deploy
- Commits and committers, over a fixed 90-day window
The scan is limited to what its identity can read. Missing permissions mean partial results, not a failed scan. Optional parts can be skipped for faster scans, see the CLI reference.
To add the cloud identities behind your service connections, run a cloud identity scan of your Entra ID tenant or Google Cloud organisation.
Ways to run the scanner¶
-
On your machine
Run
observeslocally, with a PAT, a service principal or youraz loginsession.
Install the scanner¶
Private preview
The scanner is in private preview. Email support@observes.io
for a download, rather than using the public observes-scanner repository on GitHub, which
doesn't have this version.
Download observes for Linux, Windows or macOS from
GitHub Releases, then run it:
See Install the scanner for the download commands and checksum verification.
Permissions¶
The scanner's identity needs read access to the projects you scan. With a PAT, give it these scopes:
| Scope | Why |
|---|---|
| Agent Pools (Read) | Agent pools and the agents pipelines run on |
| Analytics (Read) | Language metrics for projects and repositories |
| Build (Read) | Pipeline definitions, runs and preview runs |
| Code (Read) | Repositories, branches, commits, pull requests and committers |
| Graph (Read) | Users, groups and service principals |
| Project and Team (Read) | Projects and teams |
| Release (Read) | Classic Release definitions and runs |
| Secure Files (Read) | Secure files used by pipelines. Their contents can't be read. |
| Service Connections (Read) | Service connections and what they connect to |
| Task Groups (Read) | Task groups used in build and release pipelines |
| Variable Groups (Read) | Variable groups. Secret values can't be read. |
| Deployment Groups (Read & Manage) | Optional. Deployment groups and pools |
| Environment (Read & Manage) | Optional. Environments and their resources |
| Token Administration (Read & Revoke) | Optional. PAT tokens issued to users |
The optional scopes only exist as manage-capable scopes in Azure DevOps. The scanner only reads.
Microsoft recommends Entra ID identities over PATs for automation: their tokens are short-lived and rotate automatically. See Authentication.
Scan output¶
In the results directory (--results-dir, or the working directory by default), the scanner
writes:
| File | What it is |
|---|---|
scan_<job-id>.jsonl |
The scan results. This is the file Observes ingests. |
| An HTML report | A readable summary of the scan |
scanner_logs/scan_<job-id>_<timestamp>.log |
The detailed log, written even with --silent |
All scan times are in UTC, matching Azure DevOps.
Upload the results¶
- Open the platform's onboarding screen, or select Upload scan on the Dashboard.
- Select Upload scan results, and drop in the
.jsonlfile. - Observes queues the scan and ingests it in the background. The platform appears as soon as the data is in.
If you upload a scan older than the latest completed scan for that platform, Observes asks you to confirm before ingesting it.
- In Observes, go to Identity & Access → API keys and create a scan upload key. Give it an expiry, or leave it blank for a key that never expires.
- Keep the key in a secret store, such as a key vault.
-
Pass your Observes API URL and the key to the scanner:
export OBSERVES_PLATFORM_URL=https://<your-observes-api> export OBSERVES_PLATFORM_API_KEY=<scan-upload-key> # from a secret store observes --organization <your-organization>Or use
--observes-platform-urland--observes-platform-api-key. Environment variables keep the key out of command-line logs.
The scanner also fetches your tenant's logic container selectors before it starts scanning. If the upload fails, the scan file stays in the results directory, and you can upload it in the app instead.
Scheduling scans¶
Observes marks a platform Needs attention when its last successful scan is more than 14 days old. Run the scanner on a schedule, and use incremental scans to collect only the pipeline runs since the last scan.