github-actions: support flaky test fixer#50122
Conversation
|
This pull request doesn't have a |
🤖 GitHub commentsJust comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/trigger-issue-fixer.yml:
- Line 16: The workflow reference uses a mutable tag
"elastic/ai-github-actions/.github/workflows/gh-aw-issue-fixer.lock.yml@v0";
replace this mutable ref with the repository's immutable commit SHA for that
workflow file (fetch the exact full commit SHA that corresponds to the v0
release in the elastic/ai-github-actions repo and update the uses entry to use
@<full-commit-sha>) so the reusable workflow is pinned to an immutable commit;
ensure you update the string in the uses declaration exactly where
"gh-aw-issue-fixer.lock.yml@v0" appears.
- Around line 6-11: The workflow grants elevated write scopes to the default
GITHUB_TOKEN (permissions keys actions/contents/discussions/issues/pull-requests
set to write); change these to read-only (set each to read) so the default token
is least-privilege, and rely on the existing COPILOT_GITHUB_TOKEN for any
downstream write operations—update the permissions block by replacing write with
read for actions, contents, discussions, issues, and pull-requests and confirm
COPILOT_GITHUB_TOKEN is used where write is required.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 064fe54c-8118-47c6-abe5-8d96a48051a6
📒 Files selected for processing (1)
.github/workflows/trigger-issue-fixer.yml
Proposed commit message
Part of #49855, but the fixer part but only enabled for the BK Test Failures.
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.Disruptive User Impact
How to test this PR locally
Related issues
Use cases
Screenshots
Logs