Digital Preservation AI Agent Example#1192
Conversation
| profile_path = os.path.join(tmpdir, "profile.droid") | ||
| export_path = os.path.join(tmpdir, "export.csv") | ||
|
|
||
| with open(file_path, "wb") as f: |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| content_length = int(self.headers.get("Content-Length", 0)) | ||
| file_bytes = self.rfile.read(content_length) | ||
|
|
||
| with tempfile.NamedTemporaryFile(delete=False, suffix=f"_{filename}") as tmp: |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
|
Latest scan for commit: Security Scan ResultsScan Metadata
SummaryScanner ResultsThe table below shows findings by scanner, with status based on severity thresholds and dependencies: Column Explanations: Severity Levels (S/C/H/M/L/I):
Other Columns:
Scanner Results:
Severity Thresholds (Thresh Column):
Threshold Source: Values in parentheses indicate where the threshold is configured:
Statistics calculation:
Detailed FindingsShow 21 actionable findingsFinding 1: B310
Description: Code Snippet: Finding 2: B310
Description: Code Snippet: Finding 3: B310
Description: Code Snippet: Finding 4: B310
Description: Code Snippet: Finding 5: B104
Description: Code Snippet: Finding 6: B104
Description: Code Snippet: Finding 7: CKV_DOCKER_2
Description: Code Snippet: Finding 8: CKV_DOCKER_3
Description: Code Snippet: Finding 9: CKV_DOCKER_2
Description: Code Snippet: Finding 10: CKV_DOCKER_3
Description: Code Snippet: Finding 11: CKV_DOCKER_2
Description: Code Snippet: Finding 12: CKV_DOCKER_3
Description: Code Snippet: Finding 13: dockerfile.security.missing-user.missing-user
Description: Code Snippet: Finding 14: python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected
Description: Code Snippet: Finding 15: python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected
Description: Code Snippet: Finding 16: python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected
Description: Code Snippet: Finding 17: python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected
Description: Code Snippet: Finding 18: dockerfile.security.missing-user.missing-user
Description: Code Snippet: Finding 19: dockerfile.security.missing-user.missing-user
Description: Code Snippet: Finding 20: GHSA-f886-m6hf-6m8v-brace-expansion
Description: Finding 21: GHSA-48c2-rrv3-qjmp-yaml
Description: Report generated by Automated Security Helper (ASH) at 2026-03-30T15:26:48+00:00 |
Amazon Bedrock AgentCore Samples Pull Request
Important
review readylabel to it. Only PRs withreview readywill be reviewed.Issue number: 1191 (#1191)
Concise description of the PR
User experience
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.
Testing
Tested by deploying to dev AWS account and verified the deployment succeeded and files are analyzed by Agent successfully
