Provide a callback server when auto-generating tests for templated pl… #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensures templated plugins are linted correctly. | |
name: templated-plugins-linter | |
on: | |
push: | |
paths: | |
- 'templated/**' | |
pull_request: | |
paths: | |
- 'templated/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
name: 'Verify templated plugins' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- run: go install github.com/google/tsunami-security-scanner-plugins/templated/utils/linter@latest | |
- run: | | |
find templated/templateddetector/ -type f \( -name '*.textproto' -a ! -name '*_test.textproto' -a ! -path '*/plugins/examples/*' \) \ | |
| xargs -I{} linter {} |