Skip to content

Commit 7b2b16b

Browse files
authored
[devbox] GHA tests: add GITHUB_TOKEN to nix config to fix 403 errors (#2714)
The CICD test on `main` failed with https://github.com/jetify-com/devbox/actions/runs/18188142079/job/51777031350 `"unable to download 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable': HTTP error 403` Adding GITHUB_TOKEN to the nix-config, as done also in `cache-upload.yml` should help
1 parent 1a8e44f commit 7b2b16b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/cli-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ env:
4848
HOMEBREW_NO_EMOJI: 1
4949
HOMEBREW_NO_ENV_HINTS: 1
5050
HOMEBREW_NO_INSTALL_CLEANUP: 1
51-
51+
NIX_CONFIG: |
52+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
53+
5254
jobs:
5355
build-devbox:
5456
strategy:

0 commit comments

Comments
 (0)