🌱 harden git workflows#6331
Conversation
|
Welcome @PrashantR30! |
|
Hi @PrashantR30. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: fa8dc36fabf544c28aab0601ff164a823849b1aa |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6331 +/- ##
=======================================
Coverage 43.95% 43.95%
=======================================
Files 288 288
Lines 25285 25285
=======================================
Hits 11114 11114
Misses 13398 13398
Partials 773 773 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mboersma
left a comment
There was a problem hiding this comment.
Thanks for this! I had a couple comments, and also the PR description mentions a couple items that don't seem to be part of this PR:
- "Reducing the exposure of the default GITHUB_TOKEN"
- "Removing unnecessary pull request trigger types"
I assume you've been doing this across other CAPI-related projects (and if so, thanks!) but that they weren't relevant to CAPZ. If so, let's remove them from the PR description.
|
LGTM label has been added. DetailsGit tree hash: 8c3bdfe1ae863115df0b8299386d02afdc14117a |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mboersma The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick release-1.24 |
|
/cherry-pick release-1.23 |
|
@mboersma: new pull request created: #6335 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@mboersma: new pull request created: #6336 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR hardens GitHub Actions workflows by aligning them with current GitHub Actions security best practices and similar hardening changes already applied across other Cluster API providers.
The changes include:
persist-credentials: falsetoactions/checkoutsteps where repository write access is not required.These changes reduce the risk of credential misuse from workflow execution while preserving existing CI/CD functionality.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>format):Fixes #
Special notes for your reviewer:
This PR mirrors workflow hardening changes previously adopted in Cluster API Provider AWS and applies the same security posture to CAPZ workflows.
No functional changes to Cluster API Provider Azure components are expected. The changes are limited to GitHub Actions workflow configuration and credential handling.
TODOs:
Release note: