Skip to content

Commit

Permalink
chore: add secets scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
shyanahmed committed Jul 11, 2023
1 parent edc7f7e commit c4746e9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ orbs:
azure-cli: circleci/azure-cli@1.2.0
redhat-openshift: circleci/redhat-openshift@0.2.0
snyk: snyk/snyk@1.1.2
prodsec: snyk/prodsec-orb@1.0
staging_branch_only_filter:
filters:
branches:
Expand Down Expand Up @@ -1079,6 +1080,17 @@ workflows:
- tag_and_push
PR_TO_STAGING:
jobs:
- prodsec/secrets-scan:
name: Scan repository for secrets
context:
- snyk-bot-slack
channel: container-integration-alerts
filters:
branches:
ignore:
- staging
- master

- build_image:
filters:
branches:
Expand Down
1 change: 1 addition & 0 deletions .circleci/config/orbs/@prodsec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prodsec: snyk/prodsec-orb@1.0
2 changes: 2 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
5b9a7821680bbfb6c4a900ab05d898ce2b2cc157:test/common/config.spec.ts:generic-api-key:2
ce1cf363e4ec4546f3d73d57727ac564308c3f7e:test/README-OPENSHIFT4.md:generic-api-key:13
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.2
hooks:
- id: gitleaks

0 comments on commit c4746e9

Please sign in to comment.