Skip to content

Commit cc195f1

Browse files
bandit sast scan added
1 parent 05a3a69 commit cc195f1

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/research-agent-cicd.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

agents/research_agent/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
llm = 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
2020
research_prompt = ChatPromptTemplate.from_messages(
2121
[

0 commit comments

Comments
 (0)