From 1aca72fd3a8da9b35b09cec1970638f8915f3416 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 9 Mar 2024 14:30:48 -0500 Subject: [PATCH] Update the readme to include permissions --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ddca75..fd11b3c 100644 --- a/README.md +++ b/README.md @@ -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.