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 * * *'
|
|
|
|
|
2022-03-25 18:19:42 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-08-06 01:23:58 +00:00
|
|
|
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-04-20 23:45:36 +00:00
|
|
|
- uses: returntocorp/semgrep-action@a9f6c903be5b9bc982d6be6f9312146daa4964b5 # 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()
|