From efcc55e308109988e8b53652afa0a3ef1b8d8dd3 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sat, 6 Nov 2021 13:42:43 +0700 Subject: [PATCH] chore: add semgrep rules --- .github/workflows/golangci-lint.yaml | 2 +- .github/workflows/semgrep.yaml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/semgrep.yaml diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 319edf1..39265bd 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -1,4 +1,4 @@ -name: Go +name: golangci-lint on: push: diff --git a/.github/workflows/semgrep.yaml b/.github/workflows/semgrep.yaml new file mode 100644 index 0000000..22efab1 --- /dev/null +++ b/.github/workflows/semgrep.yaml @@ -0,0 +1,20 @@ +name: semgrep + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + name: semgrep + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: returntocorp/semgrep-action@v1 + with: + config: >- + p/golang