anthropics / anthropics/claude-code-action

WIF refresh can recreate credentials after action cleanup

オープン
#1,621 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
8.9k
フォーク
2.1k
PR マージ指標
PR 指標を取得中

説明

## Summary

An in-flight workload identity federation refresh can recreate credential material after the action has started cleanup.

## Reproduction

1. Configure workload identity federation.
2. Let a scheduled refresh enter the asynchronous OIDC token request.
3. Finish the action while that request is still pending.
4. Cleanup removes RUNNER_TEMP/claude-workload-identity.
5. The pending refresh resolves.

## Expected behavior

After cleanup starts, no identity token or exchanged-credential cache should be recreated.

## Actual behavior

The pending refresh can write a new identity token and cache directory after stop() has removed them, leaving secret-bearing files in the runner's temporary directory.

## Relevant code

- base-action/src/workload-identity.ts:147-153
- base-action/src/workload-identity.ts:192-199

PR #1620 adds a stopped-state guard and regression coverage.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。