Skip to content

Commit 703a218

Browse files
committed
Initial commit
0 parents  commit 703a218

29 files changed

Lines changed: 2364 additions & 0 deletions

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SPDX-FileCopyrightText: SAP SE
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
root = true
5+
6+
[*]
7+
insert_final_newline = true
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
indent_style = space
11+
indent_size = 2
12+
13+
[{Makefile,go.mod,go.sum,*.go}]
14+
indent_style = tab
15+
indent_size = 2
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[{LICENSE,LICENSES/*,vendor/**}]
21+
charset = unset
22+
end_of_line = unset
23+
indent_size = unset
24+
indent_style = unset
25+
insert_final_newline = unset
26+
trim_trailing_whitespace = unset

.envrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
# SPDX-FileCopyrightText: 2019–2020 Target, Copyright 2021 The Nix Community
3+
# SPDX-License-Identifier: Apache-2.0
4+
if type -P lorri &>/dev/null; then
5+
eval "$(lorri direnv)"
6+
elif type -P nix &>/dev/null; then
7+
use nix
8+
else
9+
echo "Found no nix binary. Skipping activating nix-shell..."
10+
fi

.github/renovate.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
"default:pinDigestsDisabled",
6+
"mergeConfidence:all-badges",
7+
"docker:disable"
8+
],
9+
"assignees": [
10+
"Nuckal777"
11+
],
12+
"commitMessageAction": "Renovate: Update",
13+
"constraints": {
14+
"go": "1.24"
15+
},
16+
"dependencyDashboardOSVVulnerabilitySummary": "all",
17+
"osvVulnerabilityAlerts": true,
18+
"postUpdateOptions": [
19+
"gomodTidy",
20+
"gomodUpdateImportPaths"
21+
],
22+
"packageRules": [
23+
{
24+
"matchPackageNames": [
25+
"golang"
26+
],
27+
"allowedVersions": "1.24.x"
28+
},
29+
{
30+
"matchPackageNames": [
31+
"/^github\\.com\\/sapcc\\/.*/"
32+
],
33+
"automerge": true,
34+
"groupName": "github.com/sapcc"
35+
},
36+
{
37+
"matchPackageNames": [
38+
"!/^github\\.com\\/sapcc\\/.*/",
39+
"/.*/"
40+
],
41+
"groupName": "External dependencies"
42+
},
43+
{
44+
"matchPackageNames": [
45+
"/^k8s.io\\//"
46+
],
47+
"allowedVersions": "0.28.x"
48+
}
49+
],
50+
"prHourlyLimit": 0,
51+
"schedule": [
52+
"before 8am on Friday"
53+
],
54+
"semanticCommits": "disabled"
55+
}

.github/workflows/checks.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
################################################################################
2+
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
3+
# Edit Makefile.maker.yaml instead. #
4+
################################################################################
5+
6+
# Copyright 2024 SAP SE
7+
# SPDX-License-Identifier: Apache-2.0
8+
9+
name: Checks
10+
"on":
11+
push:
12+
branches:
13+
- master
14+
pull_request:
15+
branches:
16+
- '*'
17+
workflow_dispatch: {}
18+
permissions:
19+
checks: write
20+
contents: read
21+
jobs:
22+
checks:
23+
name: Checks
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Check out code
27+
uses: actions/checkout@v4
28+
- name: Set up Go
29+
uses: actions/setup-go@v5
30+
with:
31+
check-latest: true
32+
go-version: 1.24.2
33+
- name: Run golangci-lint
34+
uses: golangci/golangci-lint-action@v7
35+
with:
36+
version: latest
37+
- name: Dependency Licenses Review
38+
run: make check-dependency-licenses
39+
- name: Install govulncheck
40+
run: go install golang.org/x/vuln/cmd/govulncheck@latest
41+
- name: Run govulncheck
42+
run: govulncheck -format text ./...
43+
- name: Check for spelling errors
44+
uses: reviewdog/action-misspell@v1
45+
with:
46+
exclude: ./vendor/*
47+
fail_on_error: true
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
ignore: importas
50+
reporter: github-check
51+
- name: Check if source code files have license header
52+
run: make check-license-headers

.github/workflows/ci.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
################################################################################
2+
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
3+
# Edit Makefile.maker.yaml instead. #
4+
################################################################################
5+
6+
# Copyright 2024 SAP SE
7+
# SPDX-License-Identifier: Apache-2.0
8+
9+
name: CI
10+
"on":
11+
push:
12+
branches:
13+
- master
14+
paths-ignore:
15+
- '**.md'
16+
pull_request:
17+
branches:
18+
- '*'
19+
paths-ignore:
20+
- '**.md'
21+
workflow_dispatch: {}
22+
permissions:
23+
contents: read
24+
jobs:
25+
build:
26+
name: Build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Check out code
30+
uses: actions/checkout@v4
31+
- name: Set up Go
32+
uses: actions/setup-go@v5
33+
with:
34+
check-latest: true
35+
go-version: 1.24.2
36+
- name: Build all binaries
37+
run: make build-all
38+
test:
39+
name: Test
40+
needs:
41+
- build
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Check out code
45+
uses: actions/checkout@v4
46+
- name: Set up Go
47+
uses: actions/setup-go@v5
48+
with:
49+
check-latest: true
50+
go-version: 1.24.2
51+
- name: Run tests and generate coverage report
52+
run: make build/cover.out

.github/workflows/codeql.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
################################################################################
2+
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
3+
# Edit Makefile.maker.yaml instead. #
4+
################################################################################
5+
6+
# Copyright 2024 SAP SE
7+
# SPDX-License-Identifier: Apache-2.0
8+
9+
name: CodeQL
10+
"on":
11+
push:
12+
branches:
13+
- master
14+
pull_request:
15+
branches:
16+
- master
17+
schedule:
18+
- cron: '00 07 * * 1'
19+
workflow_dispatch: {}
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
jobs:
25+
analyze:
26+
name: CodeQL
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Check out code
30+
uses: actions/checkout@v4
31+
- name: Set up Go
32+
uses: actions/setup-go@v5
33+
with:
34+
check-latest: true
35+
go-version: 1.24.2
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v3
38+
with:
39+
languages: go
40+
queries: security-extended
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@v3
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v3

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
build/

0 commit comments

Comments
 (0)