Update the readme to include permissions

This commit is contained in:
Graham Christensen 2024-03-09 14:30:48 -05:00
parent 98db0bfe86
commit 1aca72fd3a

View file

@ -6,7 +6,14 @@ Use Magic Nix Cache, a totally free and zero-configuration binary cache for Nix
Add our [GitHub Action][action] after installing Nix, in your workflow, like this:
```yaml
- uses: DeterminateSystems/magic-nix-cache-action@main
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
```
See [Usage](#usage) for a detailed example.