chore(ci): snyk configuration (#22)

* chore(ci): snyk configuration

* chore: fix editorconfig violations
This commit is contained in:
2025-08-06 11:08:24 +03:00
committed by GitHub
parent f3693e67fc
commit de19fab17e
5 changed files with 11 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ indent_style = space
indent_size = 2
max_line_length = 300
[*.md]
[{*.md,.snyk}]
indent_style = space
indent_size = 2
max_line_length = 200

View File

@@ -126,4 +126,3 @@ jobs:
with:
fail-on-severity: high
comment-summary-in-pr: always

1
.gitignore vendored
View File

@@ -23,6 +23,7 @@ Thumbs.db
# Vendor
go.sum
/.dccache
/gh-action-readme
*.out

26
.snyk
View File

@@ -1,23 +1,7 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
# Example: ignore a specific vulnerability
# SNYK-JS-LODASH-567746:
# - '*':
# reason: No upgrade path available
# expires: 2024-12-31T23:59:59.999Z
# patches apply the minimum changes required to fix a vulnerability
version: v1.25.1
ignore: {}
patch: {}
# Language settings
language-settings:
go:
# Enable Go module support
enableGoModules: true
# Allow minor and patch version upgrades
allowedUpgrades:
- minor
- patch
exclude:
global:
- ./testdata/**/*.json

View File

@@ -55,10 +55,11 @@ editorconfig: ## Check EditorConfig compliance
-name "*.json" -o \
-name "*.md" -o \
-name "Makefile" -o \
-name ".snyk" -o \
-name "*.tmpl" -o \
-name "*.adoc" -o \
-name "*.sh" \
\) -not -path "./.*" -not -path "./gh-action-readme" -not -path "./coverage*" \
\) -not -path "./gh-action-readme" -not -path "./coverage*" \
-not -path "./testutil.test" -not -path "./test_*" | \
xargs eclint check
@@ -74,10 +75,11 @@ editorconfig-fix: ## Fix EditorConfig violations
-name "*.json" -o \
-name "*.md" -o \
-name "Makefile" -o \
-name ".snyk" -o \
-name "*.tmpl" -o \
-name "*.adoc" -o \
-name "*.sh" \
\) -not -path "./.*" -not -path "./gh-action-readme" -not -path "./coverage*" \
\) -not -path "./gh-action-readme" -not -path "./coverage*" \
-not -path "./testutil.test" -not -path "./test_*" | \
xargs eclint fix