-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI Pipeline Issues #84
base: release-2.1
Are you sure you want to change the base?
Conversation
Signed-off-by: Hayden Roszell <[email protected]>
Signed-off-by: Hayden Roszell <[email protected]>
Signed-off-by: Hayden Roszell <[email protected]>
@@ -152,5 +152,5 @@ func (s *signer) parseEjbcaError(ctx context.Context, detail string, err error) | |||
|
|||
logger.Error(err, "EJBCA returned an error") | |||
|
|||
return fmt.Errorf(errString) | |||
return fmt.Errorf("%s", errString) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves an error generated by golangci-lint
.
@@ -2,11 +2,11 @@ run: | |||
# timeout for analysis, e.g. 30s, 5m, default is 1m | |||
timeout: 12m | |||
|
|||
skip-dirs: | |||
issues: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves two warnings generated by golangci-lint
.
@@ -30,7 +30,7 @@ jobs: | |||
- name: Run linters | |||
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0 | |||
with: | |||
version: latest | |||
version: v1.64.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Locking in specific version of this tool should mitigate breaking changes in newer versions of the lint tool.
This PR serves as a initial change set for a 2.1 release. Currently, the CI pipeline has some issues that this PR will help resolve. Additionally, it includes some documentation updates that were incorporated into the e2e-tutorial branch but were never merged in.
Fixes to the CI process:
v3
of the release workflow instead ofejbca-readme-updates
. Fixes an issue when compiling docsource.golangci-lint
tool.Updates to the CI process:
golangci-lint
tool to a specific version (1.64.5
) instead oflatest
. This will ensure newer versions of the tool do not break the CI process.Additional updates:
require.Contains
instead ofrequire.True
, the benefit of using this is that if the assertion fails it prints out expected vs received, helpful for troubleshooting breaking changes in the tests.