You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
semgrep-action
v0.4
This action runs semgrep and returns the output
The config file|directory|yaml_url|tar|url|registry_name
.
The output arg file|url
The target(s) to scan
If true
will exit 1
which will break the build.
The output of semgrep
Put in .github/workflows/semgrep.yml
name: semgrep
on: [push]
jobs:
self_test:
runs-on: ubuntu-latest
name: A job to run semgrep
steps:
- uses: actions/checkout@v2
- name: semgrep action step
id: semgrep
uses: returntocorp/semgrep-action@develop
with:
config: tests/self_test.yml
targets: tests'
- name: Get the output from semgrep
run: echo "semgrep ${{ steps.semgrep.outputs.output }}"