Skip to content

Commit

Permalink
Enable importing schema v6 grype archives (#441)
Browse files Browse the repository at this point in the history
* allow for processing v6 archives

Signed-off-by: Alex Goodman <[email protected]>

* static analysis tool requires updating

Signed-off-by: Alex Goodman <[email protected]>

* ignore grype configs for easy testing

Signed-off-by: Alex Goodman <[email protected]>

---------

Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman authored Dec 4, 2024
1 parent f2cfeaa commit a992d49
Show file tree
Hide file tree
Showing 6 changed files with 481 additions and 33 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ scratch/
/results/
/.yardstick.profiles.yaml
/.yardstick.yaml
/.grype.yaml

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# the default is to run these on commit + push
default_stages:
- push
- pre-push

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -10,47 +10,47 @@ repos:
# Prevent giant files from being committed.
- id: check-added-large-files
stages:
- push
- pre-push

# Checks for a common error of placing code before the docstring.
- id: check-docstring-first
stages:
- push
- pre-push

# Attempts to load all yaml files to verify syntax.
- id: check-yaml
stages:
- push
- pre-push

# Attempts to load all json files to verify syntax.
- id: check-json
stages:
- push
- pre-push

# Makes sure files end in a newline and only a newline.
- id: end-of-file-fixer
stages:
- push
- pre-push

# Trims trailing whitespace.
- id: trailing-whitespace
stages:
- push
- pre-push

# Check for files that contain merge conflict strings.
- id: check-merge-conflict
stages:
- push
- pre-push

# Simply check whether files parse as valid python.
- id: check-ast
stages:
- push
- pre-push

# Check for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT.
- id: check-case-conflict
stages:
- push
- pre-push

# why use the local repo instead of hosted hooks? so that dependencies are centrally managed through poetry
- repo: local
Expand Down
Loading

0 comments on commit a992d49

Please sign in to comment.