Skip to content

Commit

Permalink
Linting action
Browse files Browse the repository at this point in the history
  • Loading branch information
grischperl committed Dec 13, 2023
1 parent cee372e commit 8e4abc5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: linting

on:
pull_request:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
- '**.md'
- 'sec-scanners-config.yaml'

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Setup go environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: Checkout repo
uses: actions/checkout@v4

- name: Run linting
uses: golangci/golangci-lint-action@v3
with:
version: v1.55
args: --timeout=5m --config=./.golanci.yaml

0 comments on commit 8e4abc5

Please sign in to comment.