Skip to content

Commit

Permalink
README: point out required token permissions (#8)
Browse files Browse the repository at this point in the history
When setting `permissions` for the token used in a custom workflow, the permission `actions: write` is required to allow purging of old caches.
  • Loading branch information
olifre authored Feb 27, 2024
1 parent 6110b41 commit 9705700
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ steps:

### Token

Set a GitHub token, will default to `${github.token}`. This will probably not be nessesary as the default token should be sufficient
Set a GitHub token, will default to `${github.token}`. This will probably not be nessesary as the default token should be sufficient.

In case custom `permissions` are set for the tokens used in your actions workflow, to purge existing caches, the permission:
```
actions: write
```
needs to be available for the token.

```yaml
steps:
Expand Down

0 comments on commit 9705700

Please sign in to comment.