Skip to content

Commit

Permalink
chore(sca): add SCA tasks to .pre-commit-hooks.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Chaumeny committed Aug 17, 2023
1 parent 6614252 commit 1d29fa1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
language: python
pass_filenames: false

- id: ggshield-sca
name: ggshield-sca (pre-commit)
entry: ggshield
description: Runs ggshield Software Composition Analysis to detect vulnerabilities introduced by dependencies.
stages: [commit]
args: ['sca', 'scan', 'pre-commit']
language: python
pass_filenames: false

- id: docker-ggshield
name: ggshield (pre-commit,docker)
language: docker_image
Expand All @@ -42,6 +51,15 @@
language: python
pass_filenames: false

- id: ggshield-sca-push
name: ggshield-sca (pre-push)
entry: ggshield
description: Runs ggshield Software Composition Analysis to detect vulnerabilities introduced by dependencies.
args: ['sca', 'scan', 'pre-push']
stages: [push]
language: python
pass_filenames: false

- id: docker-ggshield-push
name: ggshield (pre-push,docker)
language: docker_image
Expand Down

0 comments on commit 1d29fa1

Please sign in to comment.