-
Notifications
You must be signed in to change notification settings - Fork 547
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
Add support for GitLab group variables #3894
base: main
Are you sure you want to change the base?
Conversation
getGitlabContext() function returns the GitLab API context (i.e. Project or Group) for a 'ref' namespaced path. This helps select which GitLab API context to use for each of the requests. See sigstore#2914 Signed-off-by: Roberto Hueso Gomez <[email protected]>
This refactors GitLab's GetSecret() function to make it work both for projects and group namespaced 'ref' paths. This function can get the value for any key, so there are no mentions to particular variable keys. See sigstore#2914 Signed-off-by: Roberto Hueso Gomez <[email protected]>
This refactors GitLab's PutSecret() function to make it work both for projects and group namespaced 'ref' paths. See sigstore#2914 Signed-off-by: Roberto Hueso Gomez <[email protected]>
This updates documentation to match group and project support when generating key pairs for GitLab. Signed-off-by: Roberto Hueso Gomez <[email protected]>
Hi @cpanato, it's my first time contributing here, I think this should be ready to review, is there any additional change needed on my side? 😄 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3894 +/- ##
==========================================
- Coverage 40.10% 36.44% -3.67%
==========================================
Files 155 203 +48
Lines 10044 12881 +2837
==========================================
+ Hits 4028 4694 +666
- Misses 5530 7604 +2074
- Partials 486 583 +97 ☔ View full report in Codecov by Sentry. |
sorry for the delay here @robertohueso please check the lint job and fix the lint issues |
Summary
This PR refactors
pkg/cosign/git/gitlab/gitlab.go
to make it work with both project variables and group variables. This is mainly used when runningThis solves #2914 for GitLab.
Release Note
Documentation
This probably does not require any change in docs apart from the ones included in this PR.