Skip to content

Commit 2ac7881

Browse files
author
soeren
committed
Reduce Semgrep false positives in generated assets and security config
1 parent c4de78d commit 2ac7881

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.semgrepignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Built frontend assets (vendor code, not authored in this repo)
2+
public/js/filament/**
3+
public/css/filament/**
4+
5+
# Dependencies and generated artifacts
6+
vendor/**
7+
node_modules/**
8+
storage/**

config/security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
$trustedHosts = array_values(array_filter(array_map(
4-
static fn (string $host): string => trim($host),
4+
static fn (string $trustedHostPattern): string => trim($trustedHostPattern),
55
explode(',', (string) env('TRUSTED_HOSTS', ''))
66
)));
77

0 commit comments

Comments
 (0)