-
Notifications
You must be signed in to change notification settings - Fork 277
Fix security issue #1884
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
base: main
Are you sure you want to change the base?
Fix security issue #1884
Conversation
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses a security issue by introducing an input validation step in the workflow.
- Adds a new "Validate Inputs" step in the Helm E2E workflow.
- Implements a case statement to check the validity of the input example.
.github/workflows/_helm-e2e.yml
Outdated
AgentQnA,AudioQnA,AvatarChatbot,ChatQnA,CodeGen,CodeTrans,DBQnA,DocIndexRetriever,DocSum,EdgeCraftRAG,GraphRAG,InstructionTuning,MultimodalQnA,ProductivitySuite,RerankFinetuning,SearchQnA,Text2Image,Translation,VideoQnA,VisualQnA,WorkflowExecAgent) | ||
echo "Valid example input: ${{ inputs.example }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The input is being converted to lowercase while the allowed values in the case pattern remain in mixed case, which may cause valid inputs to be rejected. Consider updating the allowed case patterns to lowercase or removing the lowercase conversion.
AgentQnA,AudioQnA,AvatarChatbot,ChatQnA,CodeGen,CodeTrans,DBQnA,DocIndexRetriever,DocSum,EdgeCraftRAG,GraphRAG,InstructionTuning,MultimodalQnA,ProductivitySuite,RerankFinetuning,SearchQnA,Text2Image,Translation,VideoQnA,VisualQnA,WorkflowExecAgent) | |
echo "Valid example input: ${{ inputs.example }}" | |
agentqna,audioqna,avatarchatbot,chatqna,codegen,codetrans,dbqna,docindexretriever,docsum,edgecraftrag,graphrag,instructiontuning,multimodalqna,productivitysuite,rerankfinetuning,searchqna,text2image,translation,videoqna,visualqna,workflowexecagent) | |
echo "Valid example input: ${{ inputs.example,, }}" |
Copilot uses AI. Check for mistakes.
cd20b2f
to
998989d
Compare
Signed-off-by: ZePan110 <ze.pan@intel.com>
…ing/32 Signed-off-by: ZePan110 <ze.pan@intel.com>
folders=($(find . -maxdepth 1 -type d ! -name ".*" -printf "%f\n" | tr '[:upper:]' '[:lower:]')) | ||
echo "folders: ${folders[@]}" | ||
echo "example: ${{ inputs.example }}" | ||
example_lower=$(echo "CodeGen" | tr '[:upper:]' '[:lower:]') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why CodeGen
here? Test code?
Description
The summary of the proposed changes as long as the relevant motivation and context.
Issues
https://github.com/opea-project/GenAIExamples/security/code-scanning/30
Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
List the newly introduced 3rd party dependency if exists.
Tests
https://github.com/opea-project/GenAIExamples/actions/runs/14658733798