kubernetes-sigs / network-policy-api

This repo addresses further work involving Kubernetes network security beyond the initial NetworkPolicy resource
Apache License 2.0
54 stars 29 forks source link

Add a Script linter to our CI workflow #94

Closed astoycos closed 7 months ago

astoycos commented 1 year ago

We're maintaining a ton of scripts here, it'd be nice to have a shell script specific linter like https://www.shellcheck.net/ or something to make sure we don't miss silly things :)

astoycos commented 1 year ago

/good-first-issue

k8s-ci-robot commented 1 year ago

@astoycos: This request has been marked as suitable for new contributors.

Guidelines

Please ensure that the issue body includes answers to the following questions:

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to [this](https://github.com/kubernetes-sigs/network-policy-api/issues/94): >/good-first-issue Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
astoycos commented 1 year ago

/help-wanted

v1ku commented 1 year ago

/assign

v1ku commented 1 year ago

Hello @astoycos ,

I'm working on integrating ShellCheck into the project as requested in this issue. Before proceeding, I would like to clarify a few points about the CI/CD pipeline.

Is there an existing CI/CD pipeline for this project that I may have missed? If yes, could you please point me to the relevant configuration files?
If there isn't a CI/CD pipeline set up, are developers expected to run the ShellCheck script manually before pushing their changes to the repository?
astoycos commented 1 year ago

Hi @v1ku, thanks for taking this!!

There is an existing ci/cd pipeline setup managed with prow, let me point you to a PR that should help guide you here.

I think first thing is adding a make target to our local setup to do so and then actually adding a new step to our test-infra setup.

https://github.com/kubernetes-sigs/network-policy-api/issues/37 should help answer any questions.

Meanwhile feel free to ping me here or on slack for more help.

astoycos commented 1 year ago

@v1ku Will you have time to tackle this in the near future? If not please unassign and open up for other contributors 👍

gabrielggg commented 10 months ago

/assign