You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by yi...@apache.org on 2024/09/06 17:25:51 UTC

(hudi) branch master updated: [HUDI-8180] Make permissions more strict for scheduled workflow (#11907)

This is an automated email from the ASF dual-hosted git repository.

yihua pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e575769d54 [HUDI-8180] Make permissions more strict for scheduled workflow (#11907)
5e575769d54 is described below

commit 5e575769d5498b542b12b0e71480bb814ccf9938
Author: Jon Vexler <jb...@gmail.com>
AuthorDate: Fri Sep 6 13:25:46 2024 -0400

    [HUDI-8180] Make permissions more strict for scheduled workflow (#11907)
    
    Co-authored-by: Jonathan Vexler <=>
---
 .github/workflows/scheduled_workflow.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/scheduled_workflow.yml b/.github/workflows/scheduled_workflow.yml
index 832aa005208..3fd0a98215e 100644
--- a/.github/workflows/scheduled_workflow.yml
+++ b/.github/workflows/scheduled_workflow.yml
@@ -22,7 +22,11 @@ on:
     # Runs every 5 minutes
     - cron: '*/5 * * * *'
 
-permissions: write-all
+permissions:
+  statuses: write
+  pull-requests: write
+  issues: read
+  actions: write
 
 jobs:
   delete-all-caches:
@@ -41,7 +45,6 @@ jobs:
           echo "Deleting caches..."
           for cacheKey in $cacheKeysForPR
           do
-              echo "the key to delete is: $cacheKey"
               gh actions-cache delete $cacheKey -R $REPO --confirm
           done
           echo "Done"