Skip to content

Commit

Permalink
Automated: Add Semgrep Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fishbrain-terraform[bot] authored Jul 31, 2024
1 parent 882a9ee commit 88291da
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,27 @@
######################################################################################################################
name: Semgrep
on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
- cron: '0 2 * * 5' # Once a week at 2am.
- cron: "0 2 * * 5" # Once a week at 2am.

jobs:
semgrep:
name: Scan
runs-on: warp-ubuntu-latest-x64-2x
timeout-minutes: 15 # There's been issues with some runs hanging. This times out after 15 minutes instead of the default 360.
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
image: semgrep/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v4
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}

0 comments on commit 88291da

Please sign in to comment.