semgrep and dependabot intg

pull/1098/head
“swati31196” 2022-08-05 18:02:17 +05:30
parent aa515545db
commit f01077e155
2 changed files with 28 additions and 0 deletions

8
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
time: "04:00"
timezone: Asia/Calcutta

20
.github/workflows/security.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Security
on:
workflow_dispatch:
pull_request: { }
push:
branches: [ "dev" ]
schedule:
- cron: '30 20 * * *'
jobs:
security-sast:
uses: razorpay/security-action/.github/workflows/semgrep.yml@master
secrets:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
security-statuscheck:
needs: [ security-sast ]
if: always()
uses: razorpay/security-action/.github/workflows/status_check.yml@master
with:
WORKFLOW_RESULT: ${{ needs.security-sast.result == 'success' && needs.security-sast.result != 'cancelled' || 'false' }}