.github: re-add access token (#553)

Co-authored-by: Yannik Sander <me@ysndr.de>
This commit is contained in:
Naïm Favier 2022-10-29 22:58:44 +02:00 committed by GitHub
parent ba0b05b998
commit e3ade32b1a
Failed to generate hash of commit
5 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,8 @@
name: Setup Environment name: Setup Environment
inputs: inputs:
GITHUB_TOKEN:
required: true
description: 'GitHub access token used to prevent GitHub's rate limit for unauthenticated requests'
CACHIX_SIGNING_KEY: # determines what node version to install CACHIX_SIGNING_KEY: # determines what node version to install
required: true required: true
description: 'Cachix Signing Key' description: 'Cachix Signing Key'
@ -8,11 +11,13 @@ runs:
steps: steps:
- name: Installing Nix - name: Installing Nix
uses: cachix/install-nix-action@v16 uses: cachix/install-nix-action@v18
with: with:
nix_path: nixpkgs=channel:nixpkgs-unstable nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
access-tokens = github.com=${{ inputs.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v10 - uses: cachix/cachix-action@v12
with: with:
name: nixos-search name: nixos-search
signingKey: '${{ inputs.CACHIX_SIGNING_KEY }}' signingKey: '${{ inputs.CACHIX_SIGNING_KEY }}'

View file

@ -20,6 +20,7 @@ jobs:
- name: Setup - name: Setup
uses: ./.github/actions/common-setup uses: ./.github/actions/common-setup
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}

View file

@ -24,6 +24,7 @@ jobs:
- name: Setup - name: Setup
uses: ./.github/actions/common-setup uses: ./.github/actions/common-setup
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: Try importing all custom flakes - name: Try importing all custom flakes

View file

@ -21,6 +21,7 @@ jobs:
- name: Setup - name: Setup
uses: ./.github/actions/common-setup uses: ./.github/actions/common-setup
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}

View file

@ -20,6 +20,7 @@ jobs:
- name: Setup - name: Setup
uses: ./.github/actions/common-setup uses: ./.github/actions/common-setup
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: NixOS Channels - name: NixOS Channels
@ -50,6 +51,7 @@ jobs:
- name: Setup - name: Setup
uses: ./.github/actions/common-setup uses: ./.github/actions/common-setup
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: Import ${{ matrix.channel }} channel - name: Import ${{ matrix.channel }} channel
@ -89,6 +91,7 @@ jobs:
- name: Setup - name: Setup
uses: ./.github/actions/common-setup uses: ./.github/actions/common-setup
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: Import ${{ matrix.group }} group - name: Import ${{ matrix.group }} group