• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elastic / cloudbeat / 28642678124
76%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2026 06:41AM UTC
Jobs 1
Files 235
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jul 2026 06:06AM UTC coverage: 75.779% (+0.008%) from 75.771%
28642678124

push

github

web-flow
fix: prevent panic when MS Graph returns AgentIdentityBlueprintPrincipal in service principal list (#7115)

### Summary of your changes

PageIterator[*models.ServicePrincipal] used an unsafe type assertion
(value.Index(i).Interface().(T)) that panics when the API returns
*AgentIdentityBlueprintPrincipal - a subtype automatically provisioned
by Microsoft 365 Copilot/Agents.
Changed the type parameter to the ServicePrincipalable interface, which
all subtypes satisfy.

### Screenshot/Data
<!--
If this PR adds a new feature, please add an example screenshot or data
(findings json for example).
-->


### Related Issues

- Related: https://github.com/elastic/seceng/issues/13877

### Checklist
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added the necessary README/documentation (if appropriate)

#### Introducing a new rule?

- [ ] Generate rule metadata using [this
script](https://github.com/elastic/cloudbeat/tree/main/security-policies/dev#generate-rules-metadata)
- [ ] Add relevant unit tests
- [ ] Generate relevant rule templates using [this
script](https://github.com/elastic/cloudbeat/tree/main/security-policies/dev#generate-rule-templates),
and open a PR in
[elastic/packages/cloud_security_posture](https://github.com/elastic/integrations/tree/main/packages/cloud_security_posture)

0 of 4 new or added lines in 1 file covered. (0.0%)

2 existing lines in 1 file now uncovered.

9727 of 12836 relevant lines covered (75.78%)

16.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
9.26
0.0% internal/resources/providers/msgraph/provider.go

Coverage Regressions

Lines Coverage ∆ File
2
83.06
0.33% internal/resources/providers/gcplib/inventory/provider.go
Jobs
ID Job ID Ran Files Coverage
1 28642678124.1 03 Jul 2026 06:41AM UTC 235
75.78
GitHub Action Run
Source Files on build 28642678124
  • Tree
  • List 235
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 19593ecf on github
  • Prev Build on gh-readonly-queue/main/pr-7131-9b1dfd0a1394a0854636e508d5ff4050e5d1e769 (#28600453225)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc