Skip to content

Commit 7f3a83d

Browse files
authored
sync version comments, update actions and update cosign flag (#538)
* sync version comments, update actions and update cosign flag Signed-off-by: cpanato <ctadeu@gmail.com> * fix lints Signed-off-by: cpanato <ctadeu@gmail.com> --------- Signed-off-by: cpanato <ctadeu@gmail.com>
1 parent f12bab2 commit 7f3a83d

12 files changed

Lines changed: 44 additions & 53 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@ jobs:
1212
steps:
1313

1414
- name: checkout
15-
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3
15+
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
1616
with:
1717
fetch-depth: 0
1818

1919
- name: shellcheck
2020
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
2121

2222
- name: Setup go
23-
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v3.3.0
23+
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
2424
with:
2525
go-version-file: './go.mod'
2626
check-latest: true
2727

2828
- uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
2929
with:
30-
version: v3.11.0
30+
version: v3.11.2
3131

3232
- name: Install GoReleaser
33-
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v3.1.0
33+
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
3434
with:
3535
install-only: true
3636

3737
- name: Install cosign
38-
uses: sigstore/cosign-installer@c3667d99424e7e6047999fb6246c0da843953c65 # v2.6.0
38+
uses: sigstore/cosign-installer@c3667d99424e7e6047999fb6246c0da843953c65 # v3.0.1
3939

4040
- name: Install syft
41-
uses: anchore/sbom-action/download-syft@448520c4f19577ffce70a8317e619089054687e3 # v0.13.4
41+
uses: anchore/sbom-action/download-syft@448520c4f19577ffce70a8317e619089054687e3 # v0.14.0
4242

4343
- name: Install k8s Kind
4444
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00 # v1.3.0
@@ -65,10 +65,10 @@ jobs:
6565
git diff --exit-code
6666
6767
- name: Set up QEMU
68-
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.0.0
68+
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.1.0
6969

7070
- name: Set up Docker Buildx
71-
uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.0.0
71+
uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.5.0
7272

7373
- name: Build
7474
run: |
@@ -82,8 +82,8 @@ jobs:
8282
name: check-docs
8383
runs-on: ubuntu-latest
8484
steps:
85-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3
86-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v3
85+
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
86+
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
8787
with:
8888
go-version-file: './go.mod'
8989
check-latest: true
@@ -103,12 +103,12 @@ jobs:
103103
name: lint
104104
runs-on: ubuntu-latest
105105
steps:
106-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3
107-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v3
106+
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
107+
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
108108
with:
109109
go-version-file: './go.mod'
110110
check-latest: true
111111
- name: golangci-lint
112112
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3
113113
with:
114-
version: v1.51.0
114+
version: v1.52.1

.github/workflows/release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ jobs:
1717
steps:
1818

1919
- name: checkout
20-
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.0.1
20+
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
2121
with:
2222
fetch-depth: 0
2323

2424
- name: shellcheck
2525
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
2626

2727
- name: Setup go
28-
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v3.3.0
28+
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
2929
with:
3030
go-version-file: './go.mod'
3131
check-latest: true
3232

3333
- name: Install GoReleaser
34-
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v3.1.0
34+
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
3535
with:
3636
install-only: true
3737

3838
- name: Install cosign
39-
uses: sigstore/cosign-installer@c3667d99424e7e6047999fb6246c0da843953c65 # v2.6.0
39+
uses: sigstore/cosign-installer@c3667d99424e7e6047999fb6246c0da843953c65 # v3.0.1
4040

4141
- name: Install syft
42-
uses: anchore/sbom-action/download-syft@448520c4f19577ffce70a8317e619089054687e3 # v0.13.4
42+
uses: anchore/sbom-action/download-syft@448520c4f19577ffce70a8317e619089054687e3 # v0.14.0
4343

4444
- name: Install tools
4545
run: |
@@ -53,13 +53,13 @@ jobs:
5353
git diff --exit-code
5454
5555
- name: Set up QEMU
56-
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.0.0
56+
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.1.0
5757

5858
- name: Set up Docker Buildx
59-
uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.0.0
59+
uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.5.0
6060

6161
- name: Login to registry
62-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.0.0
62+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
6363
with:
6464
registry: quay.io
6565
username: ${{ secrets.DOCKER_USERNAME }}

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ issues:
2424
linters:
2525
- errcheck
2626
- gosec
27+
- revive
2728
max-issues-per-linter: 0
2829
max-same-issues: 0
2930
run:

.goreleaser.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
project_name: chart-testing
22

33
env:
4-
- COSIGN_EXPERIMENTAL=true
4+
- COSIGN_YES=true
55

66
before:
77
hooks:
88
- go mod download
99

1010
sboms:
11-
- artifacts: archive
11+
- artifacts: archive
1212

1313
builds:
1414
- main: ct/main.go
@@ -92,14 +92,14 @@ dockers:
9292
- etc/lintconf.yaml
9393

9494
docker_manifests:
95-
- name_template: quay.io/helmpack/chart-testing:latest
96-
image_templates:
97-
- quay.io/helmpack/chart-testing:latest-amd64
98-
- quay.io/helmpack/chart-testing:latest-arm64
99-
- name_template: quay.io/helmpack/chart-testing:{{ .Tag }}
100-
image_templates:
101-
- quay.io/helmpack/chart-testing:{{ .Tag }}-amd64
102-
- quay.io/helmpack/chart-testing:{{ .Tag }}-arm64
95+
- name_template: quay.io/helmpack/chart-testing:latest
96+
image_templates:
97+
- quay.io/helmpack/chart-testing:latest-amd64
98+
- quay.io/helmpack/chart-testing:latest-arm64
99+
- name_template: quay.io/helmpack/chart-testing:{{ .Tag }}
100+
image_templates:
101+
- quay.io/helmpack/chart-testing:{{ .Tag }}-amd64
102+
- quay.io/helmpack/chart-testing:{{ .Tag }}-arm64
103103

104104
signs:
105105
- id: all

ct/cmd/docGen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func newGenerateDocsCmd() *cobra.Command {
3434
}
3535
}
3636

37-
func generateDocs(cmd *cobra.Command, args []string) error {
37+
func generateDocs(_ *cobra.Command, _ []string) error {
3838
fmt.Println("Generating docs...")
3939

4040
err := doc.GenMarkdownTree(NewRootCmd(), "doc")

ct/cmd/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func addInstallFlags(flags *flag.FlagSet) {
8484
Skip resources clean-up. Used if need to continue other flows or keep it around.`))
8585
}
8686

87-
func install(cmd *cobra.Command, args []string) error {
87+
func install(cmd *cobra.Command, _ []string) error {
8888
fmt.Println("Installing charts...")
8989

9090
printConfig, err := cmd.Flags().GetBool("print-config")

ct/cmd/lint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func addLintFlags(flags *flag.FlagSet) {
7676
Example: "helm unittest --helm3 -f tests/*.yaml {{ .Path }}"`))
7777
}
7878

79-
func lint(cmd *cobra.Command, args []string) error {
79+
func lint(cmd *cobra.Command, _ []string) error {
8080
fmt.Println("Linting charts...")
8181

8282
printConfig, err := cmd.Flags().GetBool("print-config")

ct/cmd/lintAndInstall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func newLintAndInstallCmd() *cobra.Command {
3939
return cmd
4040
}
4141

42-
func lintAndInstall(cmd *cobra.Command, args []string) error {
42+
func lintAndInstall(cmd *cobra.Command, _ []string) error {
4343
fmt.Println("Linting and installing charts...")
4444

4545
printConfig, err := cmd.Flags().GetBool("print-config")

ct/cmd/listChanged.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func newListChangedCmd() *cobra.Command {
4040
return cmd
4141
}
4242

43-
func listChanged(cmd *cobra.Command, args []string) error {
43+
func listChanged(cmd *cobra.Command, _ []string) error {
4444
printConfig, err := cmd.Flags().GetBool("print-config")
4545
if err != nil {
4646
return err

ct/cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func newVersionCmd() *cobra.Command {
3737
}
3838
}
3939

40-
func version(cmd *cobra.Command, args []string) {
40+
func version(_ *cobra.Command, _ []string) {
4141
fmt.Println("Version:\t", Version)
4242
fmt.Println("Git commit:\t", GitCommit)
4343
fmt.Println("Date:\t\t", BuildDate)

0 commit comments

Comments
 (0)