File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ inputs:
1616 description : Substituters
1717 required : false
1818 default : ' '
19+ nix-github-token :
20+ description : GitHub token to add as access-token in nix.conf
21+ default : ' '
22+ required : false
1923
2024runs :
2125 using : " composite"
2529 if : ${{ runner.environment == 'github-hosted' }}
2630 with :
2731 extra_nix_config : |
32+ ${{ inputs.nix-github-token != '' && format('access-tokens = github.com={0}', inputs.nix-github-token) || '' }}
2833 accept-flake-config = true
2934 allow-import-from-derivation = true
3035 substituters = https://cache.nixos.org ${{inputs.substituters}}
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ inputs:
2424 pr-comment-github-token :
2525 description : GitHub token used to post the PR comment
2626 required : true
27+ nix-github-token :
28+ description : GitHub token to add as access-token in nix.conf
29+ default : ' '
30+ required : false
2731
2832outputs :
2933 matrix :
4347 cachix-auth-token : ${{ inputs.CACHIX_AUTH_TOKEN }}
4448 trusted-public-keys : ${{ inputs.TRUSTED_PUBLIC_KEYS }}
4549 substituters : ${{ inputs.SUBSTITUTERS }}
50+ nix-github-token : ${{ inputs.nix-github-token }}
4651
4752 - name : Print CI Matrix
4853 id : print-matrix
Original file line number Diff line number Diff line change 99 type : ' boolean'
1010 default : false
1111 required : false
12+ secrets :
13+ nix-github-token :
14+ description : GitHub token to add as access-token in nix.conf
15+ required : false
1216
1317 # Allow this workflow to be triggered manually:
1418 workflow_dispatch :
5761 cachix-auth-token : ${{ secrets.CACHIX_AUTH_TOKEN }}
5862 trusted-public-keys : ${{ vars.TRUSTED_PUBLIC_KEYS }}
5963 substituters : ${{ vars.SUBSTITUTERS }}
64+ nix-github-token : ${{ secrets.nix-github-token }}
6065
6166 - uses : actions/checkout@v4
6267
8590 cachix-auth-token : ${{ secrets.CACHIX_AUTH_TOKEN }}
8691 trusted-public-keys : ${{ vars.TRUSTED_PUBLIC_KEYS }}
8792 substituters : ${{ vars.SUBSTITUTERS }}
93+ nix-github-token : ${{ secrets.nix-github-token }}
8894
8995 - uses : actions/checkout@v4
9096
@@ -162,6 +168,7 @@ jobs:
162168 substituters : ${{ vars.SUBSTITUTERS }}
163169 precalc_matrix : ${{ steps.matrix.outputs.fullMatrix }}
164170 pr-comment-github-token : ${{ secrets.GITHUB_TOKEN }}
171+ nix-github-token : ${{ secrets.nix-github-token }}
165172
166173 build :
167174 needs : slurp-matrix
@@ -214,6 +221,7 @@ jobs:
214221 substituters : ${{ vars.SUBSTITUTERS }}
215222 precalc_matrix : ${{ needs.slurp-matrix.outputs.fullMatrix }}
216223 pr-comment-github-token : ${{ secrets.GITHUB_TOKEN }}
224+ nix-github-token : ${{ secrets.nix-github-token }}
217225
218226 - run : exit 1
219227 if : >-
You can’t perform that action at this time.
0 commit comments