mirror of
https://github.com/eza-community/eza.git
synced 2026-10-12 02:13:29 +00:00
fix(ci): use secret GitHub token to avoid rate limiting
We can hit rate limiting when downloading Nix stuff, e.g.:
```
error: Failed to open archive (Source threw exception: error:
… during download of 'https://api.github.com/repos/numtide/flake-utils/tarball/11707dc2f618dd54ca8739b309ec4fc024de578b'
error: unable to download 'https://api.github.com/repos/numtide/flake-utils/tarball/11707dc2f618dd54ca8739b309ec4fc024de578b': HTTP error 401
response body:
{
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest",
"status": "401"
})
```
This commit is contained in:
@@ -185,6 +185,8 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Flake Check
|
||||
run: nix build .#checks.${{ matrix.target }}.${{ matrix.checks }} -L
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
flake-build:
|
||||
needs: conventional
|
||||
name: Build Nix package
|
||||
@@ -199,3 +201,5 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Build
|
||||
run: nix build .#packages.${{ matrix.target }}.default -L
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user