Skip to content

Commit

Permalink
Create public Semgrep workflow definition
Browse files Browse the repository at this point in the history
Due to some kind of undocumented Github problem, a public repo can only be required to run workflows from other public repos.
  • Loading branch information
jackdawm authored Nov 17, 2023
0 parents commit 4519c11
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Semgrep
on:
workflow_dispatch: {}
pull_request:
types: [opened, reopened, synchronize]
merge_group:
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: ghcr.io/temporalio/semgrep:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v4
- name: Run semgrep ci
run: semgrep ci

0 comments on commit 4519c11

Please sign in to comment.