File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,19 +33,39 @@ jobs:
3333 uses : actions/setup-python@v5
3434 with :
3535 python-version : ${{ env.python-version }}
36- cache : ' pip' # caching pip dependencies
36+ # cache: 'pip' # caching pip dependencies
3737
3838 - name : Install dependencies
3939 run : pip install -r agents/research_agent/requirements.txt
4040
4141 - name : Run test cases
4242 working-directory : ./agents/research_agent/
4343 run : pytest test_endpoints.py -v
44+
45+ sast_scan :
46+ name : Run Bandit scan
47+ runs-on : ubuntu-latest
48+
49+ steps :
50+ - name : Code checkout
51+ uses : actions/checkout@v4
52+
53+ - name : Setup Python
54+ uses : actions/setup-python@v5
55+ with :
56+ python-version : ${{ env.python-version }}
57+ # cache: 'pip' # caching pip dependencies
58+
59+ - name : Install Bandit
60+ run : pip install bandit
61+
62+ - name : Run Bandit scan
63+ run : bandit -ll -ii -r .
4464
4565 build_and_deploy :
4666 name : Build, Scan, Push, and Deploy
4767 runs-on : ubuntu-latest
48- needs : [unit_test]
68+ needs : [unit_test, sast_scan ]
4969 environment : Production
5070
5171 env :
Original file line number Diff line number Diff line change 1515llm = ChatGoogleGenerativeAI (model = "gemini-2.0-flash" , google_api_key = google_api_key )
1616
1717
18- # ----------------- Research Agent Setup ----------------- # #
18+ # ----------------- Research Agent Setup ----------------- #
1919# Define the prompt for generating research
2020research_prompt = ChatPromptTemplate .from_messages (
2121 [
You can’t perform that action at this time.
0 commit comments