feat: add context-action for uploading context data#39
Merged
vik-nullify merged 2 commits intomainfrom Mar 26, 2026
Merged
Conversation
New composite GitHub Action at context-action/action.yml. Usage: uses: Nullify-Platform/nullify-cloud-connector/context-action@v1 - Installs Nullify CLI, then delegates to entrypoint.sh - Mode decision matrix: merge-only, pr-only, both - Auto-detects PR number, draft status from GitHub event context - Supports terraform plans, CI logs, and other context types - Inputs: nullify-token, type, name, mode, environment, plan-path, skip-on-draft, dry-run - Outputs: action-taken, upload-path Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Security fixes: - Use bash arrays for CLI args (prevents command injection via inputs) - Safe jq parsing with error handling - Check if CLI is already installed before curl|bash Logic fixes: - Default plan-path to **/plan.json when empty - Upload each file separately with name derived from parent directory (e.g. infrastructure/networking/plan.json → name=infrastructure/networking) - Make name optional — auto-derived from file path, overridable - Proper glob expansion into array Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
tim-thacker-nullify
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
context-action/action.ymluses: Nullify-Platform/nullify-cloud-connector/context-action@v1merge-only(push only),pr-only(PR only),both(upload on PR, cleanup on close)Example usage
Test plan
mode: merge-onlyon push to mainmode: bothon PR open/sync/close🤖 Generated with Claude Code