Skip to content

Commit

Permalink
fix(ci): fix some unused CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
tcolgate committed Dec 13, 2023
1 parent 66c314e commit ac784eb
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 22 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,3 @@ jobs:
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"


- name: Notify Slack
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v2
with:
channel_id: C02TMGNNL4V
status: FAILED
color: danger
2 changes: 1 addition & 1 deletion .github/workflows/test-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: build --config=.goreleaser.yml --rm-dist --snapshot --single-target
args: build --config=.goreleaser.yml --clean --snapshot --single-target

- name: Test
run: |
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/vulnerability-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,3 @@ jobs:
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck -v ./...
- name: Notify Slack
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v2
with:
channel_id: C02TMGNNL4V
status: FAILED
color: danger
107 changes: 107 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
---
run:
timeout: 300s
skip-dirs:
- "^tools/"
build-tags:
- tests

linters-settings:
exhaustive:
default-signifies-exhaustive: true

gci:
sections:
- standard
- default
- prefix(github.com/cerbos/cerbos)
- blank
- dot
skip-generated: true
custom-order: true

gofumpt:
extra-rules: true

goheader:
values:
const:
COMPANY: Zenauth Ltd.
template: |-
Copyright {{ YEAR-RANGE }} {{ COMPANY }}
SPDX-License-Identifier: Apache-2.0
govet:
enable-all: true
disable:
- shadow

nolintlint:
allow-unused: true # false would be preferable, but it's flaky (https://github.com/golangci/golangci-lint/issues/3228)
allow-leading-space: false
require-specific: true

tagliatelle:
case:
rules:
json: goCamel
yaml: goCamel
xml: goCamel
bson: goCamel

linters:
enable:
- asciicheck
- bidichk
- bodyclose
- dupl
- durationcheck
- errorlint
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
- goconst
- gocritic
- godot
- gofumpt
- goimports
- goheader
- gomnd
- gomoddirectives
- gosec
- govet
- importas
- makezero
- misspell
- nakedret
- nestif
- nilerr
- noctx
- nolintlint
- prealloc
- predeclared
- promlinter
- revive
- rowserrcheck
- sqlclosecheck
- tagliatelle
- tenv
- thelper
- tparallel
- unconvert
- unparam
- wastedassign
- whitespace

issues:
max-same-issues: 30

exclude-rules:
- path: _test\.go
linters:
- dupl
- forcetypeassert
- goconst
- gomnd
- govet

0 comments on commit ac784eb

Please sign in to comment.