Pass workflow_permanent_id in TOTP webhook POST body by suchintan · Pull Request #4871 · Skyvern-AI/skyvern · GitHub
Skip to content

Pass workflow_permanent_id in TOTP webhook POST body - #4871

Merged
suchintan merged 2 commits into
mainfrom
repo-sync/suchintan/totp-webhook-question
Feb 25, 2026
Merged

suchintan merged 2 commits into
mainfrom
repo-sync/suchintan/totp-webhook-question

Conversation

@suchintan

Copy link
Copy Markdown
Member

Synced from cloud PR: https://github.com/Skyvern-AI/skyvern-cloud/pull/8972
Author: @suchintan

Summary

  • Fix poll_otp_value to forward workflow_permanent_id to _get_otp_value_from_url, so the TOTP webhook POST body includes it as documented
  • Add 3 unit tests verifying the workflow_permanent_id is included/excluded correctly in the webhook payload and that poll_otp_value forwards it end-to-end

Test plan

  • All 16 unit tests pass (pytest tests/unit/test_credential_totp_priority.py -v)
  • py_compile passes on modified files
  • Verify webhook POST body includes workflow_permanent_id in staging

🤖 Generated with Claude Code

Suchintan Singh added 2 commits February 25, 2026 04:19
Synced from cloud PR: https://github.com/Skyvern-AI/skyvern-cloud/pull/8972
Author: @suchintan

## Summary
- Fix `poll_otp_value` to forward `workflow_permanent_id` to `_get_otp_value_from_url`, so the TOTP webhook POST body includes it as documented
- Add 3 unit tests verifying the `workflow_permanent_id` is included/excluded correctly in the webhook payload and that `poll_otp_value` forwards it end-to-end

## Test plan
- [x] All 16 unit tests pass (`pytest tests/unit/test_credential_totp_priority.py -v`)
- [x] `py_compile` passes on modified files
- [ ] Verify webhook POST body includes `workflow_permanent_id` in staging

🤖 Generated with [Claude Code](https://claude.ai/code)
Synced from cloud PR: https://github.com/Skyvern-AI/skyvern-cloud/pull/8972
Author: @suchintan

## Summary
- Fix `poll_otp_value` to forward `workflow_permanent_id` to `_get_otp_value_from_url`, so the TOTP webhook POST body includes it as documented
- Add 3 unit tests verifying the `workflow_permanent_id` is included/excluded correctly in the webhook payload and that `poll_otp_value` forwards it end-to-end

## Test plan
- [x] All 16 unit tests pass (`pytest tests/unit/test_credential_totp_priority.py -v`)
- [x] `py_compile` passes on modified files
- [ ] Verify webhook POST body includes `workflow_permanent_id` in staging

🤖 Generated with [Claude Code](https://claude.ai/code)
@suchintan
suchintan merged commit 1b1779f into main Feb 25, 2026
12 checks passed
@suchintan
suchintan deleted the repo-sync/suchintan/totp-webhook-question branch February 25, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant