Skip to content

Commit

Permalink
fix(ci): avoid scorecard warning about top-level permissions
Browse files Browse the repository at this point in the history
Move the cache management permissions to the specific job rather than
setting them at the top-level of the given workflow to avoid a warning
from scorecard

Signed-off-by: Dominic Evans <[email protected]>
  • Loading branch information
dnwe committed Jan 7, 2025
1 parent 1464387 commit 46a805f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cache-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
- closed

permissions:
actions: write # for cache management
contents: read # for actions/checkout to fetch code

jobs:
cleanup:
permissions:
actions: write # for cache management
runs-on: ubuntu-latest
steps:
- name: Delete Caches
Expand Down

0 comments on commit 46a805f

Please sign in to comment.