Merge pull request #733 from controlplaneio/scan-specific-rules #446
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
| --- | |
| name: Linting - Go | |
| permissions: {} | |
| # Split until path filtering for jobs added | |
| # https://github.qkg1.topmunity/t/path-filtering-for-jobs-and-steps/16447 | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - "**.go" | |
| - "go.mod" | |
| - "go.sum" | |
| pull_request: | |
| branches: [master] | |
| paths: | |
| - "**.go" | |
| - "go.mod" | |
| - "go.sum" | |
| jobs: | |
| golangci-lint: | |
| name: golangci-lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Run golangci-lint | |
| uses: reviewdog/action-golangci-lint@c76cceaaab89abe74e649d2e34c6c9adc26662d2 # v2 |