fix: adding required permissions to top level and jobs in the workflow#16556
Conversation
|
|
|
Welcome @gaganhr94! It looks like this is your first PR to knative/serving 🎉 |
|
Hi @gaganhr94. Thanks for your PR. I'm waiting for a knative 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. |
|
You'll want to update the templates directly https://github.com/knative-extensions/knobots/tree/main/workflow-templates The kind-e2e is unique here so I would leave that change |
|
We'll have more actions here as well |
|
Will raise a new PR for that in that repo. For the knative/actions repo, will raise another PR for that as well. Thanks for the info ! |
Signed-off-by: Gagan H R <hrgagan4@gmail.com>
43fa701 to
35e085f
Compare
|
Updated the PR to only make changes to the kind-e2e. Will make the other changes in the template, which I believe would automatically change workflows in this PR as well |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, gaganhr94 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16556 +/- ##
=======================================
Coverage 80.17% 80.17%
=======================================
Files 217 217
Lines 13547 13532 -15
=======================================
- Hits 10861 10849 -12
- Misses 2318 2319 +1
+ Partials 368 364 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/ok-to-test |
Fixes #16555
Proposed Changes
Currently the score for the Token Permissions is 0 because the top level permissions and a few job level permissions are missing in the workflows. With this change, the score will move to 10, since the workflow jobs will run with the minimal permissions. The PR retains conditions like
writeonly at the job level, where it is necessary.permissions: contents: readto workflows that were missing it.writeonly where necessary.Tests(not applicable — workflow permission changes only)Release Note