5 Commits

Author SHA1 Message Date
948aa98709 chore(deps): update actions/checkout action to v5
Some checks failed
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Failing after 2s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Failing after 2s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (pull_request) Failing after 2s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (pull_request) Failing after 2s
Lint Markdown files / Run markdown linter (pull_request) Failing after 2s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Failing after 3s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Failing after 4s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (pull_request) Failing after 4s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (pull_request) Failing after 3s
2025-08-12 07:12:50 +00:00
027e7ed7ad chore(deps): update actions/checkout to v4.3.0
All checks were successful
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 16s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 11s
Lint Markdown files / Run markdown linter (push) Successful in 6s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 45s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 25s
2025-08-12 08:48:30 +02:00
b24b4e6a71 chore(deps): update golangci/golangci-lint to v2.3.0
All checks were successful
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 13s
Lint Markdown files / Run markdown linter (push) Successful in 3s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 42s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 46s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 22s
2025-08-12 08:31:39 +02:00
c60eb969d0 fix(golangci): add config
All checks were successful
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 6s
Lint Markdown files / Run markdown linter (push) Successful in 3s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 29s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 23s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 59s
2025-08-12 08:29:38 +02:00
405f996e19 style(ci): rename workflows
All checks were successful
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 10s
Lint Markdown files / Run markdown linter (push) Successful in 4s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 28s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 23s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 1m2s
2025-08-12 08:20:28 +02:00
8 changed files with 55 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
name: Golang CI lint name: "Lint Golang files"
on: on:
pull_request: pull_request:
@@ -6,12 +6,14 @@ 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:
@@ -24,4 +26,4 @@ jobs:
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.1 version: v2.3.0 # renovate: datasource=github-releases depName=golangci/golangci-lint

View File

@@ -1,4 +1,4 @@
name: Golang Tests name: "Run Golang tests"
on: on:
pull_request: pull_request:
@@ -6,9 +6,27 @@ on:
push: push:
branches: [ '**' ] branches: [ '**' ]
tags-ignore: [ '**' ] tags-ignore: [ '**' ]
workflow_dispatch: {}
jobs: jobs:
unittest: # integration-test:
# 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:

View File

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

View File

@@ -1,4 +1,4 @@
name: Release name: "Release"
on: on:
push: push:
@@ -9,8 +9,8 @@ permissions:
jobs: jobs:
release: release:
runs-on: name: "Release application"
- ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v5.0.0
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
@@ -28,10 +28,11 @@ jobs:
GOPROXY: ${{ vars.GOPROXY }} GOPROXY: ${{ vars.GOPROXY }}
uses: goreleaser/goreleaser-action@v6.3.0 uses: goreleaser/goreleaser-action@v6.3.0
with: with:
version: "~> v2" version: v2.11.2 # renovate: datasource=github-releases depName=goreleaser/goreleaser
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

@@ -1,4 +1,4 @@
name: Update Docker Hub Description name: "Update Docker Hub Description"
on: on:
push: push:
@@ -8,8 +8,7 @@ on:
jobs: jobs:
update-description-on-hub-docker-io: update-description-on-hub-docker-io:
runs-on: runs-on: ubuntu-latest
- ubuntu-latest
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v5.0.0
- uses: peter-evans/dockerhub-description@v4.0.2 - uses: peter-evans/dockerhub-description@v4.0.2

13
.golangci.yaml Normal file
View File

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

View File

@@ -90,11 +90,13 @@ func run(cmd *cobra.Command, args []string) error {
switch { switch {
case len(outputFile) > 0: case len(outputFile) > 0:
// #nosec G301
err = os.MkdirAll(filepath.Dir(outputFile), 0755) err = os.MkdirAll(filepath.Dir(outputFile), 0755)
if err != nil { if err != nil {
return err return err
} }
// #nosec G304
f, err := os.Create(outputFile) f, err := os.Create(outputFile)
if err != nil { if err != nil {
return err return err

View File

@@ -43,7 +43,7 @@ func Fetch(urls ...string) ([]*dockerCompose.Config, error) {
return dockerComposeConfigs, nil return dockerComposeConfigs, nil
} }
var ErrorPathIsDir error = errors.New("path is a directory") var ErrPathIsDir error = errors.New("path is a directory")
func getDockerComposeViaHTTP(url string) (*dockerCompose.Config, error) { func getDockerComposeViaHTTP(url string) (*dockerCompose.Config, error) {
req, err := http.NewRequest(http.MethodGet, url, nil) req, err := http.NewRequest(http.MethodGet, url, nil)
@@ -78,9 +78,10 @@ func readDockerComposeFromFile(name string) (*dockerCompose.Config, error) {
case err != nil: case err != nil:
return nil, err return nil, err
case fileStat.IsDir(): case fileStat.IsDir():
return nil, fmt.Errorf("%w: %s", ErrorPathIsDir, name) return nil, fmt.Errorf("%w: %s", ErrPathIsDir, name)
} }
// #nosec G304
file, err := os.Open(name) file, err := os.Open(name)
if err != nil { if err != nil {
return nil, err return nil, err