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