diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 0000000..32fec52 --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,17 @@ +name: Semgrep + +on: + pull_request: + branches: [main] + +permissions: + contents: read + pull-requests: write + +jobs: + scan: + uses: kernel/security-workflows/.github/workflows/semgrep.yml@main + with: + extra-configs: '--config p/golang --config p/trailofbits' + codebase-description: 'Kernel CLI tool authenticating with customer API keys' + secrets: inherit diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 0000000..1927ca8 --- /dev/null +++ b/.semgrepignore @@ -0,0 +1,5 @@ +node_modules/ +vendor/ +dist/ +*_test.go +go.sum