Skip to content

Commit

Permalink
Grant workflows triggered by PR from access to secrets:
Browse files Browse the repository at this point in the history
Fixes "Error: Resource not accessible by integration". The event runs
against the workflow and code from the base of the PR rather then
workflow and code from the merge commit.
  • Loading branch information
DanielKotik committed May 31, 2024
1 parent 4b15874 commit 5644c59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cleanup-caches.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Cleanup caches
on:
pull_request:
pull_request_target:
types:
- closed

Expand All @@ -20,6 +20,7 @@ jobs:
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
echo $cacheKey
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
Expand Down

0 comments on commit 5644c59

Please sign in to comment.