1 Commits

Author SHA1 Message Date
ba33ee3645 chore(deps): update actions/checkout action to v5
Some checks failed
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Failing after 2s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Failing after 3s
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Failing after 5s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Failing after 3s
Golang Tests / unittest (stable, ubuntu-latest-amd64) (pull_request) Failing after 2s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (pull_request) Failing after 3s
Lint Markdown files / markdown-lint (pull_request) Failing after 2s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (pull_request) Failing after 3s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (pull_request) Failing after 14s
2025-08-11 16:18:36 +00:00
10 changed files with 28 additions and 63 deletions

View File

@ -1 +0,0 @@
prometheus-fail2ban-exporter

View File

@ -1,13 +1,15 @@
# Editor configuration, see http://editorconfig.org # EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true root = true
[*] [*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space indent_style = space
insert_final_newline = false indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = false
[{Makefile,*.go}] [Makefile]
indent_style = tab indent_style = tab

View File

@ -1,4 +1,4 @@
name: "Run Golang tests" name: Golang Tests
on: on:
pull_request: pull_request:
@ -6,34 +6,16 @@ on:
push: push:
branches: [ '**' ] branches: [ '**' ]
tags-ignore: [ '**' ] tags-ignore: [ '**' ]
workflow_dispatch: {}
jobs: jobs:
# integration-test: unittest:
# name: "Run integration tests"
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# go: [ stable ]
# os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ]
# steps:
# - uses: actions/checkout@v4.3.0
# - uses: actions/setup-go@v5.5.0
# with:
# go-version: ${{ matrix.go }}
# - env:
# GOPROXY: ${{ vars.GOPROXY }}
# run: make test/integration
unit-test:
name: "Run unit tests"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go: [ stable ] go: [ stable ]
os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ] os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ]
steps: steps:
- uses: actions/checkout@v4.3.0 - uses: actions/checkout@v5.0.0
- uses: actions/setup-go@v5.5.0 - uses: actions/setup-go@v5.5.0
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}

View File

@ -1,4 +1,4 @@
name: "Lint Golang files" name: Golang CI lint
on: on:
pull_request: pull_request:
@ -6,24 +6,22 @@ on:
push: push:
branches: [ '**' ] branches: [ '**' ]
tags-ignore: [ '**' ] tags-ignore: [ '**' ]
workflow_dispatch: {}
permissions: permissions:
contents: read contents: read
jobs: jobs:
golangci: golangci:
name: "Run golang CI linter"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go: [ stable ] go: [ stable ]
os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ] os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ]
steps: steps:
- uses: actions/checkout@v4.3.0 - uses: actions/checkout@v5.0.0
- uses: actions/setup-go@v5.5.0 - uses: actions/setup-go@v5.5.0
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
- uses: golangci/golangci-lint-action@v8.0.0 - uses: golangci/golangci-lint-action@v8.0.0
with: with:
version: v2.4.0 # renovate: datasource=github-releases depName=golangci/golangci-lint version: v2.1

View File

@ -1,4 +1,4 @@
name: "Lint Markdown files" name: 'Lint Markdown files'
on: on:
pull_request: pull_request:
@ -6,14 +6,13 @@ on:
push: push:
branches: [ '*' ] branches: [ '*' ]
tags-ignore: [ '*' ] tags-ignore: [ '*' ]
workflow_dispatch: {}
jobs: jobs:
markdown-lint: markdown-lint:
name: "Run markdown linter" runs-on:
runs-on: ubuntu-latest - ubuntu-latest
steps: steps:
- uses: actions/checkout@v4.3.0 - uses: actions/checkout@v5.0.0
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0 - uses: DavidAnson/markdownlint-cli2-action@v20.0.0
with: with:
globs: '**/*.md' globs: '**/*.md'

View File

@ -1,4 +1,4 @@
name: "Release" name: Release
on: on:
push: push:
@ -9,10 +9,10 @@ permissions:
jobs: jobs:
release: release:
name: "Release application" runs-on:
runs-on: ubuntu-latest - ubuntu-latest
steps: steps:
- uses: actions/checkout@v4.3.0 - uses: actions/checkout@v5.0.0
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
- uses: actions/setup-go@v5.5.0 - uses: actions/setup-go@v5.5.0
with: with:
@ -26,13 +26,12 @@ jobs:
GITEA_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} GITEA_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
GONOSUMDB: ${{ vars.GONOSUMDB }} GONOSUMDB: ${{ vars.GONOSUMDB }}
GOPROXY: ${{ vars.GOPROXY }} GOPROXY: ${{ vars.GOPROXY }}
uses: goreleaser/goreleaser-action@v6.4.0 uses: goreleaser/goreleaser-action@v6.3.0
with: with:
version: v2.11.2 # renovate: datasource=github-releases depName=goreleaser/goreleaser version: "~> v2"
args: release --clean args: release --clean
sync-to-hub-docker-io: sync-to-hub-docker-io:
name: "Upload Images to docker.io"
needs: needs:
- release - release
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -11,7 +11,7 @@ jobs:
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:
- uses: actions/checkout@v4.3.0 - uses: actions/checkout@v5.0.0
- uses: peter-evans/dockerhub-description@v4.0.2 - uses: peter-evans/dockerhub-description@v4.0.2
with: with:
username: ${{ secrets.DOCKER_IO_USERNAME }} username: ${{ secrets.DOCKER_IO_USERNAME }}

View File

@ -1,13 +0,0 @@
version: "2"
linters:
default: standard
enable:
- errname
- gosec
exclusions:
rules: []
warn-unused: true
run:
tests: true

View File

@ -37,7 +37,6 @@ func (c *Collector) collectFileContents() {
} }
fullPath := filepath.Join(c.folderPath, fileName) fullPath := filepath.Join(c.folderPath, fileName)
// #nosec G304
content, err := os.ReadFile(fullPath) content, err := os.ReadFile(fullPath)
if err != nil { if err != nil {
c.appendErrorForPath(fileName) c.appendErrorForPath(fileName)

2
go.mod
View File

@ -2,7 +2,7 @@ module git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter
go 1.23.0 go 1.23.0
toolchain go1.25.0 toolchain go1.24.6
require ( require (
github.com/alecthomas/kong v1.12.1 github.com/alecthomas/kong v1.12.1