diff --git a/.github/workflows/staticchecker.yml b/.github/workflows/staticchecker.yml new file mode 100644 index 00000000..8008a5bc --- /dev/null +++ b/.github/workflows/staticchecker.yml @@ -0,0 +1,16 @@ +name: static check + +on: pull_request + +jobs: + static-checks: + name: Statick checker + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: check + uses: danhunsaker/golang-github-actions@v1.3.0 + with: + run: imports,errcheck,lint,shadow,staticcheck,sec + token: ${{ secrets.GITHUB_TOKEN }} + flags: '{"sec": "-exclude=G104"}'