Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [PIPE-23883]: defined cgiTaskResponse, fix NPE error when pipeline execution and secret fetching fails #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xingchi-jin
Copy link
Contributor

  1. Fix the NPE error when fetching secret fails during local_execute task.
  2. Defined CGITaskResponse type, so that it will be the standard CGI task response data structure. Using the status_code in it we can identify whether secret fetch succeeded or not.


// attempt to unmarshal the task response
// body into the secrets struct.
out := new(common.Secret)
if err := json.Unmarshal(res.Body(), &out); err != nil {
//out := new(common.Secret)

Choose a reason for hiding this comment

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

this can be removed.

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.

2 participants