diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 58a2f9d2e..7f4c30dbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -374,8 +374,11 @@ jobs: files: | go.mod go.sum - - uses: cachix/install-nix-action@v15 + - uses: cachix/install-nix-action@v18 if: steps.changed-files.outputs.any_changed == 'true' + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - name: update gomod2nix run: nix run .#update-gomod2nix if: steps.changed-files.outputs.any_changed == 'true' diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 6cf485fb2..c18742ff1 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -16,8 +16,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com skipPush: true @@ -30,8 +33,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com # github don't pass secrets for pull request from fork repos, @@ -70,8 +76,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com # github don't pass secrets for pull request from fork repos, @@ -86,8 +95,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests @@ -118,8 +130,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests @@ -150,8 +165,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests @@ -182,8 +200,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests @@ -214,8 +235,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests @@ -246,8 +270,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests @@ -278,8 +305,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests @@ -311,8 +341,11 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 with: name: crypto-com - name: Run integration tests