-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,491 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/.dockerignore | ||
.DS_Store | ||
# TODO: uncomment when applications no longer use git to get version information | ||
#.git/ | ||
/.github/ | ||
/.gitignore | ||
/.goreleaser.yml | ||
/*.env* | ||
/.golangci.yaml | ||
/.vscode/ | ||
/build/ | ||
/CONTRIBUTING.md | ||
/Dockerfile | ||
/docs/ | ||
/LICENSE* | ||
/Makefile.maker.yaml | ||
/README.md | ||
/report.html | ||
/shell.nix | ||
/testing/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-FileCopyrightText: 2019–2020 Target, Copyright 2021 The Nix Community | ||
# SPDX-License-Identifier: Apache-2.0 | ||
if type -P lorri &>/dev/null; then | ||
eval "$(lorri direnv)" | ||
else | ||
use nix | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
"default:pinDigestsDisabled", | ||
"mergeConfidence:all-badges", | ||
"docker:disable" | ||
], | ||
"assignees": [ | ||
"defo89", | ||
"SchwarzM", | ||
"xsen84", | ||
"goerangudat" | ||
], | ||
"commitMessageAction": "Renovate: Update", | ||
"constraints": { | ||
"go": "1.23" | ||
}, | ||
"dependencyDashboardOSVVulnerabilitySummary": "all", | ||
"osvVulnerabilityAlerts": true, | ||
"postUpdateOptions": [ | ||
"gomodTidy", | ||
"gomodUpdateImportPaths" | ||
], | ||
"packageRules": [ | ||
{ | ||
"matchPackageNames": [ | ||
"golang" | ||
], | ||
"allowedVersions": "1.23.x" | ||
}, | ||
{ | ||
"matchPackageNames": [ | ||
"/^github\\.com\\/sapcc\\/.*/" | ||
], | ||
"automerge": true, | ||
"groupName": "github.com/sapcc" | ||
}, | ||
{ | ||
"matchPackageNames": [ | ||
"!/^github\\.com\\/sapcc\\/.*/", | ||
"/.*/" | ||
], | ||
"groupName": "External dependencies" | ||
} | ||
], | ||
"prHourlyLimit": 0, | ||
"schedule": [ | ||
"before 8am on Friday" | ||
], | ||
"semanticCommits": "disabled" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
################################################################################ | ||
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> # | ||
# Edit Makefile.maker.yaml instead. # | ||
################################################################################ | ||
|
||
# Copyright 2024 SAP SE | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Checks | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: {} | ||
permissions: | ||
checks: write | ||
contents: read | ||
jobs: | ||
checks: | ||
name: Checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version: 1.23.4 | ||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: latest | ||
- name: Dependency Licenses Review | ||
run: make check-dependency-licenses | ||
- name: Install govulncheck | ||
run: go install golang.org/x/vuln/cmd/govulncheck@latest | ||
- name: Run govulncheck | ||
run: govulncheck -format text ./... | ||
- name: Check for spelling errors | ||
uses: reviewdog/action-misspell@v1 | ||
with: | ||
exclude: ./vendor/* | ||
fail_on_error: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
ignore: importas | ||
reporter: github-check | ||
- name: Check if source code files have license header | ||
run: make check-license-headers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
################################################################################ | ||
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> # | ||
# Edit Makefile.maker.yaml instead. # | ||
################################################################################ | ||
|
||
# Copyright 2024 SAP SE | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: CI | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths-ignore: | ||
- '**.md' | ||
workflow_dispatch: {} | ||
permissions: | ||
contents: read | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version: 1.23.4 | ||
- name: Build all binaries | ||
run: make build-all | ||
test: | ||
name: Test | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version: 1.23.4 | ||
- name: Run tests and generate coverage report | ||
run: make build/cover.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
################################################################################ | ||
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> # | ||
# Edit Makefile.maker.yaml instead. # | ||
################################################################################ | ||
|
||
# Copyright 2024 SAP SE | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: CodeQL | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '00 07 * * 1' | ||
workflow_dispatch: {} | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
jobs: | ||
analyze: | ||
name: CodeQL | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version: 1.23.4 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: go | ||
queries: security-extended | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
################################################################################ | ||
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> # | ||
# Edit Makefile.maker.yaml instead. # | ||
################################################################################ | ||
|
||
# Copyright 2024 SAP SE | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Container Registry GHCR | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
permissions: | ||
contents: read | ||
packages: write | ||
jobs: | ||
build-and-push-image: | ||
name: Push container to ghcr.io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
tags: | | ||
# https://github.com/docker/metadata-action#typeedge | ||
type=edge | ||
# https://github.com/docker/metadata-action#latest-tag | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
# https://github.com/docker/metadata-action#typesemver | ||
type=semver,pattern={{raw}} | ||
type=semver,pattern=v{{major}}.{{minor}} | ||
type=semver,pattern=v{{major}} | ||
# https://github.com/docker/metadata-action#typesha | ||
type=sha,format=long | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
certs/ | ||
.Makefile | ||
build/ |
Oops, something went wrong.