Skip to content

Commit 35e41ee

Browse files
committed
Increase verbosity with error message
1 parent 9ec009c commit 35e41ee

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/seclab_taskflows/prompts/audit/known_security_advisories.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ seclab-taskflow-agent:
77
prompt: |
88
## Known Security Advisories for this Repository
99
10-
Fetch the security advisories for {{ globals.repo }} from memcache (stored under the key 'security_advisories_{{ globals.repo }}'). If the value in the memcache is null, clearly state so and skip advisory analysis. Otherwise, state how many advisories were found.
10+
Fetch the security advisories for {{ globals.repo }} from memcache (stored under the key 'security_advisories_{{ globals.repo }}'). If the value in the memcache is null or an error message, clearly state that no advisories are available and skip advisory analysis. Otherwise, state how many advisories were found.
1111
Review these advisories and consider them when identifying security risks. If you identify code that is similar to a known advisory pattern, highlight that connection.

src/seclab_taskflows/taskflows/audit/fetch_security_advisories.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ taskflow:
2121
user_prompt: |
2222
Fetch all GitHub Security Advisories (GHSAs) for the repo {{ globals.repo }}.
2323
24-
After fetching, store the list of advisories in memcache under the key 'security_advisories_{{ globals.repo }}'.
24+
If an error occurs during fetching, store the error message in memcache under the key 'security_advisories_{{ globals.repo }}'.
25+
Ensure the error message starts with "Error:" followed by a description of the error.
2526
26-
Provide a summary of:
27+
If fetching is successful, store the list of advisories in memcache under the key 'security_advisories_{{ globals.repo }}'.
28+
29+
If one ore more advisories are found, provide a summary of the findings including:
2730
1. How many advisories were found
2831
2. The severity levels of the advisories
29-
3. Key recommendations for addressing them
3032
toolboxes:
3133
- seclab_taskflows.toolboxes.ghsa
3234
- seclab_taskflow_agent.toolboxes.memcache

0 commit comments

Comments
 (0)