-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconstants.go
More file actions
49 lines (41 loc) · 1.63 KB
/
constants.go
File metadata and controls
49 lines (41 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company
// SPDX-License-Identifier: Apache-2.0
package core
const (
DefaultAlpineImage = "3.22"
DefaultGoVersion = "1.24.6"
DefaultPostgresVersion = "17"
DefaultLinkerdAwaitVersion = "0.2.7"
DefaultGitHubComRunsOn = "ubuntu-latest"
)
var DefaultGitHubEnterpriseRunsOn = map[string]string{
"group": "organization/Default",
}
var SugarRunsOn = []string{"self-hosted"}
// GetUploadArtifactAction works around GitHub not supporting their own stuff
// https://github.com/actions/upload-artifact/issues/537
func GetUploadArtifactAction(isSelfHostedRunner bool) string {
if isSelfHostedRunner {
return "actions/upload-artifact@v2"
} else {
return "actions/upload-artifact@v4"
}
}
const (
CheckoutAction = "actions/checkout@v5"
SetupGoAction = "actions/setup-go@v5"
DockerLoginAction = "docker/login-action@v3"
DockerMetadataAction = "docker/metadata-action@v5"
DockerBuildxAction = "docker/setup-buildx-action@v3"
DockerQemuAction = "docker/setup-qemu-action@v3"
DockerBuildPushAction = "docker/build-push-action@v6"
CodeqlInitAction = "github/codeql-action/init@v3"
CodeqlAnalyzeAction = "github/codeql-action/analyze@v3"
CodeqlAutobuildAction = "github/codeql-action/autobuild@v3"
DownloadSyftAction = "anchore/sbom-action/download-syft@v0.20"
GoCoverageReportAction = "fgrosse/go-coverage-report@v1.2.0"
GolangciLintAction = "golangci/golangci-lint-action@v8"
GoreleaserAction = "goreleaser/goreleaser-action@v6"
MisspellAction = "reviewdog/action-misspell@v1"
ReuseAction = "fsfe/reuse-action@v5"
)