We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7b10fc commit e34d380Copy full SHA for e34d380
1 file changed
scripts/autopilot-operator.ps1
@@ -40,7 +40,7 @@ function Assert-SafeChangeSet {
40
if (-not $Paths -or $Paths.Count -eq 0) { throw "No changed files found." }
41
if ($Paths.Count -gt $MaxFiles) { throw "Change set has $($Paths.Count) files; limit is $MaxFiles." }
42
43
- $sensitive = '(^|/)(\.env($|\.)|credentials($|\.)|secrets?($|\.)|id_[^/]+|[^/]+\.(pem|key|pfx|p12))$'
+ $sensitive = '(^|/)(\.env($|\.)|credentials?($|\.)|secrets?($|\.)|id_[^/]+$|[^/]+\.(pem|key|pfx|p12)$)'
44
foreach ($path in $Paths) {
45
$normalized = $path.Replace('\', '/')
46
if ($normalized -match $sensitive) { throw "Sensitive path blocked: $path" }
0 commit comments