File tree 17 files changed +496
-101
lines changed
17 files changed +496
-101
lines changed Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2
+
3
+ # name: CodeQL
4
+
5
+ # permissions: {}
6
+
7
+ # on:
8
+ # pull_request:
9
+ # branches:
10
+ # - main
11
+ # push:
12
+ # branches:
13
+ # - main
14
+
15
+ # concurrency:
16
+ # group: ${{ github.workflow }}-${{ github.ref }}
17
+ # cancel-in-progress: true
18
+
19
+ # jobs:
20
+ # required:
21
+ # runs-on: ubuntu-latest
22
+ # permissions:
23
+ # security-events: write
24
+ # steps:
25
+ # - name: Checkout
26
+ # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
27
+ # with:
28
+ # fetch-depth: 0
29
+ # - name: Run Trivy vulnerability scanner in repo mode
30
+ # uses: aquasecurity/trivy-action@d43c1f16c00cfd3978dde6c07f4bbcf9eb6993ca # v0.16.1
31
+ # with:
32
+ # scan-type: fs
33
+ # ignore-unfixed: false
34
+ # format: sarif
35
+ # output: trivy-results.sarif
36
+ # severity: CRITICAL,HIGH,MEDIUM
37
+ # scanners: vuln,secret
38
+ # exit-code: '0'
39
+ # vuln-type: os,library
40
+ # - name: Upload Trivy scan results to GitHub Security tab
41
+ # uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
42
+ # with:
43
+ # sarif_file: trivy-results.sarif
44
+ # category: code
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2
+
3
+ # name: Tests
4
+
5
+ # permissions: {}
6
+
7
+ # on:
8
+ # pull_request:
9
+ # branches:
10
+ # - main
11
+ # push:
12
+ # branches:
13
+ # - main
14
+
15
+ # concurrency:
16
+ # group: ${{ github.workflow }}-${{ github.ref }}
17
+ # cancel-in-progress: true
18
+
19
+ # jobs:
20
+ # unit-tests:
21
+ # runs-on: ubuntu-latest
22
+ # steps:
23
+ # - name: Checkout
24
+ # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25
+ # - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
26
+ # with:
27
+ # go-version-file: go.mod
28
+ # cache-dependency-path: go.sum
29
+ # # - name: Create test cluster
30
+ # # run: |
31
+ # # set -e
32
+ # # make kind-cluster
33
+ # - name: Run tests
34
+ # run: |
35
+ # set -e
36
+ # make tests
37
+ # - name: Upload Report to Codecov
38
+ # uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
39
+ # with:
40
+ # file: ./coverage.out
41
+ # fail_ci_if_error: true
42
+ # verbose: true
43
+
44
+ # required:
45
+ # needs:
46
+ # - unit-tests
47
+ # runs-on: ubuntu-latest
48
+ # steps:
49
+ # - run: echo "Required jobs success!"
Original file line number Diff line number Diff line change
1
+ linters :
2
+ enable :
3
+ - asasalint
4
+ - asciicheck
5
+ - bidichk
6
+ - bodyclose
7
+ - containedctx
8
+ - decorder
9
+ - dogsled
10
+ - durationcheck
11
+ - errcheck
12
+ - errname
13
+ - exportloopref
14
+ - gci
15
+ # - gochecknoinits
16
+ - gofmt
17
+ - gofumpt
18
+ - goimports
19
+ - goprintffuncname
20
+ - gosec
21
+ - gosimple
22
+ - govet
23
+ - grouper
24
+ - importas
25
+ - ineffassign
26
+ - makezero
27
+ - misspell
28
+ - noctx
29
+ - nolintlint
30
+ - nosprintfhostport
31
+ # - paralleltest
32
+ - staticcheck
33
+ - tenv
34
+ - thelper
35
+ - tparallel
36
+ - typecheck
37
+ - unconvert
38
+ - unused
39
+ - wastedassign
40
+ - whitespace
41
+
42
+ run :
43
+ timeout : 15m
44
+ skip-files :
45
+ - " .+\\ .generated.go"
46
+
47
+ output :
48
+ format : colored-line-number
49
+ sort-results : true
Original file line number Diff line number Diff line change
1
+ before :
2
+ hooks :
3
+ - go mod tidy
4
+
5
+ builds :
6
+ - id : policy-reports
7
+ env :
8
+ - CGO_ENABLED=0
9
+ goos :
10
+ - linux
11
+ - windows
12
+ - darwin
13
+ binary : policy-reports
14
+ flags :
15
+ - -trimpath
16
+ # ldflags:
17
+ # - -s -w -X github.com/kyverno/policy-reports/pkg/version.BuildVersion={{ .Version }}
18
+
19
+ kos :
20
+ - build : policy-reports
21
+ repository : ghcr.io/kyverno/policy-reports
22
+ tags :
23
+ - ' {{.Tag}}'
24
+ - ' {{ if not .Prerelease }}latest{{ end }}'
25
+ bare : true
26
+ preserve_import_paths : false
27
+ sbom : none
28
+ platforms :
29
+ - all
30
+
31
+ signs :
32
+ - cmd : cosign
33
+ certificate : ' ${artifact}.pem'
34
+ args :
35
+ - sign-blob
36
+ - --output-certificate=${certificate}
37
+ - --output-signature=${signature}
38
+ - ${artifact}
39
+ - --yes
40
+ artifacts : all
41
+ output : true
42
+
43
+ docker_signs :
44
+ - cmd : cosign
45
+ artifacts : all
46
+ output : true
47
+ args :
48
+ - sign
49
+ - ${artifact}
50
+ - --yes
51
+
52
+ # brews:
53
+ # - homepage: https://kyverno.github.io/policy-reports
54
+ # description: Declarative Kubernetes end-to-end testing.
55
+ # repository:
56
+ # owner: kyverno
57
+ # name: policy-reports
58
+ # branch: brew-{{.Version}}
59
+ # pull_request:
60
+ # enabled: true
61
+ # base:
62
+ # owner: kyverno
63
+ # name: policy-reports
64
+ # branch: main
65
+
66
+ archives :
67
+ - name_template : ' {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
68
+
69
+ checksum :
70
+ name_template : checksums.txt
71
+
72
+ source :
73
+ enabled : true
74
+
75
+ sboms :
76
+ - artifacts : archive
77
+ - id : source
78
+ artifacts : source
79
+
80
+ snapshot :
81
+ name_template : ' {{ incpatch .Version }}-next'
82
+
83
+ release :
84
+ prerelease : auto
85
+
86
+ changelog :
87
+ sort : asc
88
+ filters :
89
+ exclude :
90
+ - ' ^docs:'
91
+ - ' ^test:'
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ COPY . ./
14
14
# ARG ARCH
15
15
# ARG GIT_COMMIT
16
16
# ARG GIT_TAG
17
- RUN GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="-w -s" -o policy-reports ./cmd/ main.go
17
+ RUN GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="-w -s" -o policy-reports ./main.go
18
18
19
19
FROM gcr.io/distroless/static:nonroot
20
20
WORKDIR /
You can’t perform that action at this time.
0 commit comments