Skip to content

Harden workflow output handling#263

Open
enyst wants to merge 5 commits into
mainfrom
openhands/issue-3371-workflow-env
Open

Harden workflow output handling#263
enyst wants to merge 5 commits into
mainfrom
openhands/issue-3371-workflow-env

Conversation

@enyst
Copy link
Copy Markdown
Member

@enyst enyst commented May 24, 2026

Why

Part of the cross-repo fix for OpenHands/software-agent-sdk#3371. Workflow run: blocks should not interpolate derived outputs directly into shell scripts when those values may be influenced by workflow execution.

Summary

  • Moves vulnerability scan action outputs through env: before shell use in the summary step.
  • Updates the shell script to reference $SCAN_ONLY and $VULNERABILITIES_FOUND instead of direct ${{ ... }} interpolation.

Issue Number

Fixes OpenHands/software-agent-sdk#3371

How to Test

  • python + PyYAML validation over all changed workflow/action YAML files across the audited repositories: validated changed yaml files: 33
  • Repository scanner confirmed: remaining suspicious run blocks: 0
  • git diff --check across all audited repositories

Notes

This PR was created by an AI agent (OpenHands) on behalf of the user.

@enyst can click here to continue refining the PR

Pass attacker-controllable GitHub context and workflow values through environment variables before shell use.

Co-authored-by: openhands <openhands@all-hands.dev>
@enyst enyst marked this pull request as ready for review May 24, 2026 00:14
enyst and others added 3 commits May 24, 2026 00:17
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
@enyst enyst added the review-this label May 24, 2026 — with OpenHands AI
Co-authored-by: openhands <openhands@all-hands.dev>
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.

Security: pass attacker-controllable GitHub context values through env: in workflows

2 participants