Commit graph

38 commits

Author SHA1 Message Date
Matt Farina
9f620b857a Update to Go 1.23
Multiple changes were made to pass linting. Some Go built-in names
are being used for variables (e.g., min). This happens in the Go
source itself including the Go standard library and is not always
a bad practice.

To handle allowing some built-in names to be used the linter config
is updated to allow (via opt-in) some names to pass. This allows us
to still check for re-use of Go built-in names and opt-in to any
new uses.

There were also several cases where a value was checked for nil
before checking its length when this is already handled by len()
or the types default value. These were cleaned up.

The license validation was updated because it was checking everything
in the .git directory including all remote content that was local.
The previous vendor directory was from a time prior to Go modules
when Helm handled dependencies differently. It was no longer needed.

Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 5727f56a96)
2024-12-28 12:06:27 -05:00
George Jenkins
2042f7d35a Run build-test action on dev-v3 branch
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
(cherry picked from commit bfada38aa9)
2024-12-26 16:39:05 -05:00
Matt Farina
b5a83ea821 Adding CI for dev-v3 branch
When the main branch is for Helm v4, the dev-v3 branch is for Helm v3.

Note, the canary release is setup for helm v4 once the v3 branch is created
and there is no canary release for v3.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-11-11 06:17:45 -07:00
dependabot[bot]
f983342597
Bump actions/checkout from 4.2.1 to 4.2.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](eef61447b9...11bd71901b)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-25 19:04:08 +00:00
dependabot[bot]
c867af8e11
Bump actions/setup-go from 5.0.2 to 5.1.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0a12ed9d6a...41dfa10bad)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-24 21:31:32 +00:00
dependabot[bot]
d517450a11
Bump actions/checkout from 4.2.0 to 4.2.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](d632683dd7...eef61447b9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 21:46:29 +00:00
Matt Farina
b2286c4caa
Merge pull request #13328 from robertsirc/adjusting-go-setup-check-latest
adding check-latest:true
2024-10-01 14:58:10 +02:00
dependabot[bot]
2cd8d54c83
Bump actions/checkout from 4.1.7 to 4.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](692973e3d9...d632683dd7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-25 21:28:37 +00:00
Robert Sirchia
611fae3d7d
adding check-latest:true
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-09-12 12:51:48 -04:00
Joe Julian
1a55457375
Merge pull request #13259 from harshitasao/scorecard-checks-fix
fix: fixed the token-permission and pinned-dependencies issue
2024-09-12 09:12:47 -07:00
Robert Sirchia
e7b25bab6f
bumping version to 1.22.7
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-09-11 15:44:13 -04:00
Robert Sirchia
5f15f53e2e
removing govulncheck from build-test
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-09-06 11:38:40 -04:00
Robert Sirchia
88fa81ecb6
adding a new line at the end of the file as per the request of the maintainers
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 16:39:08 -04:00
Robert Sirchia
76b9d962f0
restoring the original triggers that were removed for testing
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 16:34:28 -04:00
Robert Sirchia
38dd4a7fea
moving govulncheck to a seperate job
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 16:31:11 -04:00
Robert Sirchia
1ad6af9287
removing specific go version for govulncheck
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 16:20:15 -04:00
Robert Sirchia
e46e0ddb98
updating go version for govulncheck
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 16:13:33 -04:00
Robert Sirchia
6757f8a81b
fixing directory for go-packages
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 16:04:08 -04:00
Robert Sirchia
031b34458e
changing the triggers to test this GH actions
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 15:56:13 -04:00
Robert Sirchia
7e3df4baaf
Adding in workflow_call to test GH Actions
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-30 15:48:23 -04:00
Robert Sirchia
b351fdce99
adding workflow_dispatch to test
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-28 16:39:48 -04:00
Robert Sirchia
67617290d4
adding govulncheck
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-28 15:40:37 -04:00
harshitasao
b4caed94cd fix: fixed the token-permission and pinned-dependencies issue
Signed-off-by: harshitasao <harshitasao@gmail.com>
2024-08-18 08:55:55 +05:30
dependabot[bot]
98e2af96d5
Bump actions/setup-go from 5.0.1 to 5.0.2
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](cdcb360436...0a12ed9d6a)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 21:12:50 +00:00
dependabot[bot]
a13a353a3e
Bump actions/checkout from 4.1.1 to 4.1.7
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](b4ffde65f4...692973e3d9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-12 21:37:38 +00:00
Matt Farina
d209b9ba6e Updating to k8s 1.30
Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-05-09 06:26:58 -04:00
dependabot[bot]
53177e06e0
chore(deps): bump actions/setup-go from 5.0.0 to 5.0.1
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0c52d547c9...cdcb360436)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 21:15:18 +00:00
Matt Farina
33ab351984
Merge pull request #12616 from helm/dependabot/github_actions/actions/setup-go-5.0.0
chore(deps): bump actions/setup-go from 4.1.0 to 5.0.0
2024-01-17 14:17:34 -05:00
Matt Farina
847369c184
Update to Go 1.21 for builds
Noteis:
1. This moves golangci scanning to a GitHub action. This will
   enable inline pointers to issues in the PR where linting fails.
2. Go 1.21 is specified in the go.mod because Kubernetes libs
   require it.
3. The lint issues were removed. Some were fixed while others
   were handled by skipping linting or using _ as an argument.
   Many of these can be refactored later for better cleanup.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-01-08 15:48:36 -05:00
dependabot[bot]
f980ad319c
chore(deps): bump actions/setup-go from 4.1.0 to 5.0.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](93397bea11...0c52d547c9)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-12 20:38:04 +00:00
dependabot[bot]
372cccad56
chore(deps): bump actions/checkout from 3.6.0 to 4.1.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](f43a0e5ff2...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 21:53:44 +00:00
dependabot[bot]
4283b2cb3d
chore(deps): bump actions/checkout from 3.5.3 to 3.6.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](c85c95e3d7...f43a0e5ff2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-24 22:06:09 +00:00
dependabot[bot]
c3a4122dc6
chore(deps): bump actions/setup-go from 4.0.1 to 4.1.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](fac708d667...93397bea11)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 21:28:39 +00:00
dependabot[bot]
f9e5db39c9 chore(deps): bump actions/checkout from 3.2.0 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](755da8c3cf...c85c95e3d7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-13 17:28:00 +00:00
dependabot[bot]
6e2bddde6a
chore(deps): bump actions/setup-go from 3.5.0 to 4.0.1
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3.5.0 to 4.0.1.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](6edd4406fa...fac708d667)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-13 16:38:00 +00:00
Matt Farina
3232493514
Only run tests once
Tests are being run twice in CI. Once with code coverage being
report and once without. Tests only need to be run once.

When Helm previously had testing in CircleCI it was the code
coverage tests so that was retained here.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-04-12 13:02:03 -04:00
Matt Farina
50c22ed7f9
Bump the Go version
Needed to gofmt source to meet changes in style

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-03-22 11:29:26 -04:00
Matt Farina
1f263857a0
Add testing to default and release branches
Also added a note to the circleci config

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-03-02 16:17:33 -05:00
Renamed from .github/workflows/build-pr.yml (Browse further)