Skip to content

Commit c3c29ed

Browse files
committed
Merge branch 'security-fixes/ash-suppressions' into 'develop'
Security fixes: Add suppressions for AJV and unsafe format string vulnerabilities See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!397
2 parents f40a1c4 + f809650 commit c3c29ed

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

scripts/codebuild_deployment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
def run_command(cmd, check=True):
4040
"""Run shell command and return result"""
4141
print(f"Running: {cmd}")
42-
result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
42+
result = subprocess.run(cmd, shell=True, capture_output=True, text=True) # nosemgrep: python.lang.security.audit.subprocess-shell-true.subprocess-shell-true - Reviewed: command input is controlled and sanitized
4343
if result.stdout:
4444
print(result.stdout)
4545
if result.stderr:

scripts/integration_test_deployment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
def run_command(cmd, check=True):
1717
"""Run shell command and return result"""
1818
print(f"Running: {cmd}")
19-
result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
19+
result = subprocess.run(cmd, shell=True, capture_output=True, text=True) # nosemgrep: python.lang.security.audit.subprocess-shell-true.subprocess-shell-true - Reviewed: command input is controlled and sanitized
2020
if check and result.returncode != 0:
2121
print(f"Error: {result.stderr}")
2222
sys.exit(1)

src/ui/src/hooks/useSchemaDesigner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ export const useSchemaDesigner = (initialSchema = []) => {
481481

482482
if (!refClass) {
483483
console.log(
484-
` ❌ No class found with name "${refName}". Available classes:`,
484+
` ❌ No class found with name "${refName}". Available classes:`, // nosemgrep: javascript.lang.security.audit.unsafe-formatstring.unsafe-formatstring - Controlled input from schema validation, not user input
485485
classes.map((c) => c.name),
486486
);
487487
} else {
@@ -507,7 +507,7 @@ export const useSchemaDesigner = (initialSchema = []) => {
507507

508508
if (!refClass) {
509509
console.log(
510-
` ❌ No class found with name "${refName}". Available classes:`,
510+
` ❌ No class found with name "${refName}". Available classes:`, // nosemgrep: javascript.lang.security.audit.unsafe-formatstring.unsafe-formatstring - Controlled input from schema validation, not user input
511511
classes.map((c) => c.name),
512512
);
513513
} else {

src/ui/src/hooks/useSchemaValidation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const useSchemaValidation = () => {
2929

3030
const ajv = useMemo(() => {
3131
const instance = new Ajv({
32-
allErrors: true,
32+
allErrors: true, // nosemgrep: javascript.ajv.security.audit.ajv-allerrors-true.ajv-allerrors-true - allErrors required for comprehensive validation feedback for user created schemas in UI
3333
strict: false,
3434
validateFormats: true,
3535
discriminator: true,

0 commit comments

Comments
 (0)