Skip to content

Commit

Permalink
ci: add static checker for code analysis
Browse files Browse the repository at this point in the history
This adds a workflow to run golang static checks on PRs to catch simple bugs earlier
  • Loading branch information
mudler authored Jul 12, 2024
1 parent 2639b8c commit 6638c0b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/staticchecker.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
run: imports,errcheck,lint,shadow,staticcheck,sec
token: ${{ secrets.GITHUB_TOKEN }}
flags: '{"sec": "-exclude=G104"}'

0 comments on commit 6638c0b

Please sign in to comment.