Skip to content

ci: Try to auto-fix flaky test issues#20793

Draft
mydea wants to merge 3 commits into
developfrom
fn/auto-fix-issue
Draft

ci: Try to auto-fix flaky test issues#20793
mydea wants to merge 3 commits into
developfrom
fn/auto-fix-issue

Conversation

@mydea
Copy link
Copy Markdown
Member

@mydea mydea commented May 11, 2026

This adds a workflow that tries to auto-fix a given issue. It is auto-run for flaky test issues.

@mydea mydea self-assigned this May 11, 2026
Comment thread .github/workflows/auto-fix-issue.yml
@mydea mydea force-pushed the fn/auto-fix-issue branch from be4e7e3 to 86f6509 Compare May 11, 2026 10:37
@mydea
Copy link
Copy Markdown
Member Author

mydea commented May 12, 2026

adjusted this a bit and introduced prompt injection checker from triage-issue here as well.

id: triage
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mutable third-party action ref runs with secrets and write token

The workflow pins anthropics/claude-code-action@v1 (a moving tag) in a job that exposes ANTHROPIC_API_KEY, a pull-requests: write GITHUB_TOKEN, and id-token: write. A compromise or retag of the upstream v1 tag would let attacker-controlled action code exfiltrate the Anthropic API key, open or modify pull requests under the repo's identity, and mint OIDC tokens. Pin third-party actions to a full 40-character commit SHA to remove the upstream tag-rewrite supply-chain path.

Verification

Read the workflow hunk; confirmed permissions block grants pull-requests: write and id-token: write and the step passes ANTHROPIC_API_KEY and GITHUB_TOKEN into a third-party action referenced by floating tag @v1. Checked references/github-workflows.md mutable-action table: third-party mutable ref with secrets/OIDC/non-trivial write token => medium.

Identified by Warden security-review · SZ3-4PD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant