Skip to content

Commit

Permalink
Merge pull request #5040 from sensu/fix-semgrep-gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
amdprophet authored Nov 21, 2023
2 parents ce7a049 + 152c284 commit 76e247f
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@ on: [pull_request]
jobs:
semgrep:
runs-on: ubuntu-latest
name: Check
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Semgrep
id: semgrep
uses: returntocorp/semgrep-action@v1
with:
config: p/semgrep-go-correctness
semgrep-sensu: # looks for .semgrep.yml due to missing config section
run: semgrep ci -c p/semgrep-go-correctness
semgrep-sensu:
runs-on: ubuntu-latest
name: Check
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: SemgrepSensu
id: semgrep-sensu
uses: returntocorp/semgrep-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semgrep ci -c .semgrep.yml

0 comments on commit 76e247f

Please sign in to comment.