From 5217fb0c1683d29be0e88da64badb7b49a20da4e Mon Sep 17 00:00:00 2001 From: kotokaze <62094392+kotokaze@users.noreply.github.com> Date: Sun, 26 Feb 2023 10:29:43 +0900 Subject: [PATCH] docs: Add missing permission in cache delete example --- 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