Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 24 additions & 16 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Semgrep
on:
pull_request: {}
workflow_dispatch:
pull_request: { }
push:
branches: ["master"]
branches: [ "master" ]
schedule:
- cron: '30 20 * * *'
jobs:
semgrep:
name: Scan
runs-on: ubuntu-latest
# Skip any PR created by dependabot to avoid permissioning issues
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v2
- uses: returntocorp/semgrep-action@v1
with:
auditOn: push
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
publishDeployment: 339
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
security-sast:
uses: razorpay/security-action/.github/workflows/semgrep.yml@master
secrets:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}

security-packagevulnerability:
uses: razorpay/security-action/.github/workflows/package_scan.yml@master
with:
PROGRAMMING_LANGUAGE: GO
secrets:
GIT_TOKEN: ${{ secrets.GIT_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' }}