Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Snyk scope baseline in generated projects: `.snyk` (exclude paths for
`.venv/`, `.worktrees/`, `node_modules/`, `site/`, `htmlcov/`, `out/`,
and `**/site-packages/**`) prevents Snyk's filesystem scan from walking
into virtual environments and vendored packages; `.dcignore` applies the
same exclusions to Snyk Code; `.vscode/settings.json` adds
`snyk.advanced.additionalParameters` for the VS Code extension. Note:
`.gitignore` does not constrain Snyk's scan; these files are required to
scope it to project-owned code
- `qlty.yml` reusable-workflow caller in generated projects'
`.github/workflows/` (satisfies CI-013 manifest gap); pins upstream
`python-qlty-coverage.yml` at SHA `1b2d33c4`; runs on CI workflow_run
Expand Down
10 changes: 10 additions & 0 deletions {{cookiecutter.project_slug}}/.dcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Snyk Code scope configuration (gitignore-style).
# .dcignore scopes Snyk Code's filesystem scan to project-owned code.
# Paths listed here are excluded from Snyk Code analysis.
.venv/
.worktrees/
node_modules/
site/
htmlcov/
out/
**/site-packages/**
4 changes: 4 additions & 0 deletions {{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ dmypy.json

# IDE specific files
.vscode/
# Track Snyk VS Code extension settings (project-scoped, not personal IDE settings)
!.vscode/settings.json
.idea/
*.swp
*.swo
Expand Down Expand Up @@ -219,6 +221,8 @@ ENV/

# IDE and Editor files
.vscode
# Track Snyk VS Code extension settings (project-scoped, not personal IDE settings)
!.vscode/settings.json
.idea
.sublime-project
.sublime-workspace
Expand Down
19 changes: 19 additions & 0 deletions {{cookiecutter.project_slug}}/.snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Snyk scope configuration.
# Snyk scans the on-disk working tree, not git or the project manifests, so
# it walks into virtual environments, worktrees, and vendored packages and
# reports their dependencies as if they belong to this project.
# .gitignore does NOT constrain Snyk's filesystem scan.
# The paths below scope Snyk to project-owned code only.
version: v1.25.0
exclude:
global:
- .venv/**
- "**/.venv/**"
- .worktrees/**
- "**/.worktrees/**"
- node_modules/**
- "**/node_modules/**"
- site/**
- htmlcov/**
- out/**
- "**/site-packages/**"
3 changes: 3 additions & 0 deletions {{cookiecutter.project_slug}}/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"snyk.advanced.additionalParameters": "--exclude=.venv,.worktrees,node_modules,site,htmlcov,out"
}
Loading