From f6acb6ee164d600d3b43ed5dfda3df2154d37ea1 Mon Sep 17 00:00:00 2001 From: Savil Srivastava <676452+savil@users.noreply.github.com> Date: Tue, 7 Mar 2023 11:02:17 -0800 Subject: [PATCH] [cicd] auto-nix-install: set github access token --- .github/workflows/cli-tests.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/cli-tests.yaml b/.github/workflows/cli-tests.yaml index 50f67f4b45d..6763bb2aec5 100644 --- a/.github/workflows/cli-tests.yaml +++ b/.github/workflows/cli-tests.yaml @@ -129,4 +129,10 @@ jobs: run: | export NIX_INSTALLER_NO_CHANNEL_ADD=1 export DEVBOX_DEBUG=1 + + # Setup github authentication to ensure Github's rate limits are not hit. + # If this works, we can consider refactoring this into a reusable github action helper. + mkdir -p ~/.config/nix + echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf + devbox run echo "Installing packages..."