2021-08-06 01:23:58 +00:00
|
|
|
name: Semgrep
|
|
|
|
|
|
|
|
on:
|
2021-08-06 17:02:45 +00:00
|
|
|
workflow_dispatch: # (manual dispatch)
|
2021-08-06 01:23:58 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '0 2 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
semgrep:
|
|
|
|
name: Scan
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
# Checkout project source
|
2022-03-16 19:42:28 +00:00
|
|
|
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
|
2021-08-06 01:23:58 +00:00
|
|
|
|
|
|
|
# Scan code using project's configuration on https://semgrep.dev/manage
|
2022-03-16 19:42:28 +00:00
|
|
|
- uses: returntocorp/semgrep-action@b4ae418326a5e8bd4fc3b0b658695aee09ca0e2a # v1
|
2021-08-06 01:23:58 +00:00
|
|
|
with:
|
|
|
|
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
|
|
|
|
publishDeployment: ${{ secrets.SEMGREP_DEPLOYMENT_ID }}
|
2021-08-06 17:02:45 +00:00
|
|
|
# generateSarif: "1"
|
2021-08-06 01:23:58 +00:00
|
|
|
|
2021-08-06 17:02:45 +00:00
|
|
|
# # Upload SARIF file generated in previous step
|
|
|
|
# - name: Upload SARIF file
|
|
|
|
# uses: github/codeql-action/upload-sarif@v1
|
|
|
|
# with:
|
|
|
|
# sarif_file: semgrep.sarif
|
|
|
|
# if: always()
|