Skip to content

Commit

Permalink
feat: add golangci for scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
holyspectral committed Dec 9, 2024
1 parent 9911a46 commit c57e4b6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: golangci-lint
on:
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
args: --timeout=30m --new-from-rev=${{ github.event.pull_request.base.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c57e4b6

Please sign in to comment.