mirror of
https://github.com/portainer/portainer.git
synced 2026-08-07 10:04:49 +00:00
c9b0150791
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
16 lines
567 B
YAML
16 lines
567 B
YAML
version: '2'
|
|
run:
|
|
allow-parallel-runners: true
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- forbidigo
|
|
settings:
|
|
forbidigo:
|
|
forbid:
|
|
- pattern: ^dataservices.DataStore.(EdgeGroup|EdgeJob|EdgeStack|EndpointRelation|Endpoint|GitCredential|Registry|ResourceControl|Role|Settings|Snapshot|SSLSettings|Stack|Tag|User)$
|
|
msg: Use a transaction instead
|
|
- pattern: ^(filepath|path)\.Join$
|
|
msg: Use filesystem.JoinPaths() from github.com/portainer/portainer/api/filesystem to prevent path traversal attacks
|
|
analyze-types: true
|