mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-02-08 02:46:59 +00:00
chore(ci): snyk configuration (#22)
* chore(ci): snyk configuration * chore: fix editorconfig violations
This commit is contained in:
@@ -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
|
||||
|
||||
1
.github/workflows/security.yml
vendored
1
.github/workflows/security.yml
vendored
@@ -126,4 +126,3 @@ jobs:
|
||||
with:
|
||||
fail-on-severity: high
|
||||
comment-summary-in-pr: always
|
||||
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -23,6 +23,7 @@ Thumbs.db
|
||||
|
||||
# Vendor
|
||||
go.sum
|
||||
/.dccache
|
||||
|
||||
/gh-action-readme
|
||||
*.out
|
||||
|
||||
26
.snyk
26
.snyk
@@ -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
|
||||
|
||||
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user