[FR] Switch to ephemeral tokens for non DR workflows - #6524
Merged
Conversation
Contributor
Enhancement - GuidelinesThese guidelines serve as a reminder set of considerations when addressing adding a feature to the code. Documentation and Context
Code Standards and Practices
Testing
Additional Checks
|
eric-forte-elastic
marked this pull request as ready for review
July 29, 2026 23:25
eric-forte-elastic
requested review from
Aegrah,
Mikaayenson,
bryans3c,
shashank-elastic,
terrancedejesus and
w0rk3r
July 29, 2026 23:25
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reintroduces ephemeral GitHub token usage (via elastic/ci-gh-actions/fetch-github-token) in selected GitHub Actions workflows, replacing long-lived repository secrets for cross-repo checkouts, workflow dispatches, and PR creation.
Changes:
- Adds
permissions: id-token: writeand fetches ephemeral GitHub tokens via OIDC/Vault in multiple workflows. - Switches cross-repo operations (checkout, API calls, PR creation) from stored secrets to the fetched ephemeral token.
- Skips OIDC/token-dependent jobs on fork-based pull requests where OIDC ID tokens are not issued.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/release-fleet.yml | Uses ephemeral tokens for integrations checkout and PR creation (adds id-token: write). |
| .github/workflows/release-docs.yml | Uses ephemeral tokens for elastic/security-docs checkout and PR creation (adds id-token: write). |
| .github/workflows/react-tests-dispatcher.yml | Uses ephemeral token for dispatching REACT workflow; skips fork PRs (adds id-token: write). |
| .github/workflows/kibana-mitre-update.yml | Uses ephemeral token to comment on a Kibana issue; skips fork PRs (adds id-token: write). |
Mikaayenson
approved these changes
Jul 29, 2026
bryans3c
approved these changes
Jul 30, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s):
Related to #6464, https://github.com/elastic/ia-trade-team/issues/960
Summary - What I changed
Re-adds ephemeral GitHub token support (via
elastic/ci-gh-actions/fetch-github-token) for the workflows where the previous rollout showed no blockers. This partially reverses #6464, which reverted ephemeral tokens across all workflows after issues that were specific toWRITE_TRADEBOT_DETECTION_RULES_TOKEN.How To Test
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist