DWN-51053: Added semgrep to new config.yml

pull/1609/head
jjuaniveson 2024-03-08 15:26:49 +00:00
parent 802e40ebc9
commit bcb48af9c9
1 changed files with 55 additions and 0 deletions

55
.circleci/config.yml Normal file
View File

@ -0,0 +1,55 @@
version: 2.1
parameters:
semgrep:
type: boolean
default: false
orbs:
gresham: gresham-computing/gresham-orb@5.8.0
executors:
linux-machine:
machine:
image: ubuntu-2204:2023.10.1
jobs:
semgrep-scan:
executor: linux-machine
resource_class: medium
steps:
- checkout
- gresham/get-whitelister
- gresham/whitelist-add:
pattern: openid-connect
kondukto: true
- gresham/semgrep-scan:
kondukto: true
konduktoProject: "openid-connect-server"
konduktoBranch: "${CIRCLE_BRANCH}"
- gresham/whitelist-remove:
pattern: openid-connect
kondukto: true
workflows:
semgrep-scan:
when: << pipeline.parameters.semgrep >>
jobs:
- semgrep-scan:
context:
- gresham-aws
- CircleCi-Gresham-Credentials
scheduled-security-scan:
triggers:
- schedule:
cron: 0 4 * * 1
filters:
branches:
only: main
jobs:
- semgrep-scan:
name: Semgrep Scan
context:
- gresham-aws
- CircleCi-Gresham-Credentials