From e0d62270e20d6eeecf2fd6397a1b8871b6269e38 Mon Sep 17 00:00:00 2001
From: Kotokaze <62094392+kotokaze@users.noreply.github.com>
Date: Tue, 28 Feb 2023 03:10:04 +0900
Subject: [PATCH] docs: Add missing permission in cache delete example (#1123)

---
 tips-and-workarounds.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tips-and-workarounds.md b/tips-and-workarounds.md
index 7c1bb4a..a76560b 100644
--- a/tips-and-workarounds.md
+++ b/tips-and-workarounds.md
@@ -44,6 +44,11 @@ on:
 jobs:
   cleanup:
     runs-on: ubuntu-latest
+    permissions:
+      # `actions:write` permission is required to delete caches
+      #   See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id
+      actions: write
+      contents: read
     steps:
       - name: Check out code
         uses: actions/checkout@v3