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

elastic / cloudbeat / 34338010503
76%
main: 76%

Build:
Build:
LAST BUILD BRANCH: bump-to-9.4.11
DEFAULT BRANCH: main
Ran 09 Sep 2026 10:20AM UTC
Jobs 1
Files 243
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

09 Sep 2026 10:01AM UTC coverage: 76.21%. Remained the same
34338010503

push

github

web-flow
feat(ci): migrate sync-rule-templates to ephemeral GitHub token (#8350)

## Summary

Revives `.github/workflows/sync-rule-templates.yml` so CIS `data.yaml`
changes on `main` open/update a PR in `elastic/integrations`.
Authenticates with an ephemeral GitHub token (OIDC + TokenPolicy)
instead of `CLOUDSEC_MACHINE_TOKEN`.

## Changes

- Replace `secrets.CLOUDSEC_MACHINE_TOKEN` with an OIDC-minted ephemeral
token via `elastic/ci-gh-actions/fetch-github-token` (same pattern as
`sync-internal-cloudbeat-version.yml`)
- Add `id-token: write` permission at job level; restrict top-level
permissions to `contents: read`
- Replace hermit with direct `setup-python` + `pipx install poetry`
steps — hermit's composite action uses paths relative to
`$GITHUB_WORKSPACE` but cloudbeat is checked out to a subdirectory
(`cloudbeat/`)
- Fix `bump_integration_version` in `scripts/common.sh` for Linux: read
version map comment before `yq` strips it, patch-bump within the current
minor series instead of always minor-bumping, strip yq-preserved
comments before restoring the header block, replace macOS-only `sed -i
''` with portable approach
- Fix `generate_rule_templates.py` to write a trailing newline on
generated JSON files, avoiding noisy diffs in `elastic/integrations` PRs
- Fix early exit in `sync_rule_templates.sh` when no template changes
are detected

## Pre-requisites

TokenPolicy `token-policy-cloudbeat-sync-rule-templates` — **already
merged and realized**:
- PR: https://github.com/elastic/catalog-info/pull/4556
- Vault: `ci-prod`
- Workflow ref:
`elastic/cloudbeat/.github/workflows/sync-rule-templates.yml@*`
- Repo: `elastic/integrations`
- Permissions: `contents: write`, `pull_requests: write`, `issues:
write`

## Test results ✅

Workflow ran end-to-end successfully from this branch:
- Passing workflow run:
https://github.com/elastic/cloudbeat/actions/runs/34123265309
- Integrations PR opened by the workflow:
https://github.com/elastic/integrations/pull/21110

Verif... (continued)

10158 of 13329 relevant lines covered (76.21%)

16.0 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
83.06
0.0% internal/resources/providers/gcplib/inventory/provider.go
Jobs
ID Job ID Ran Files Coverage
1 34338010503.1 09 Sep 2026 10:20AM UTC 243
76.21
GitHub Action Run
Source Files on build 34338010503
  • Tree
  • List 243
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f49f9a49 on github
  • Prev Build on gh-readonly-queue/main/pr-8381-b29638d585ae65221af3dadde0b2daf637040248 (#34265977174)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc