Skip to content

Commit 37bd690

Browse files
Merge pull request #2078 from kristof-mattei/use-the-token
fix: use the github token to ensure we can download
2 parents a537546 + f6ecce7 commit 37bd690

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
- name: Install cocogitto to get the next version number
143143
shell: bash
144144
run: |
145-
cargo binstall --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
145+
cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
146146
147147
- name: Calculate next version
148148
shell: bash
@@ -246,7 +246,7 @@ jobs:
246246
- name: Install nextest, custom test runner, with native support for junit and grcov
247247
shell: bash
248248
run: |
249-
cargo binstall --no-confirm cargo-nextest grcov
249+
cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm cargo-nextest grcov
250250
251251
- name: Build with instrumentation support
252252
shell: bash
@@ -409,7 +409,7 @@ jobs:
409409
- name: Install cargo-edit to do set-version, and cargo-get to get the description
410410
shell: bash
411411
run: |
412-
cargo binstall --no-confirm cargo-edit cargo-get
412+
cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm cargo-edit cargo-get
413413
414414
- name: Set the Cargo.toml version before we copy in the data into the Docker container
415415
shell: bash

.github/workflows/lint-commits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install cocogitto to get the next version number
5454
shell: bash
5555
run: |
56-
cargo binstall --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
56+
cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
5757
5858
- name: Check the commits
5959
shell: bash

.github/workflows/publish-crate-after-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: Install cargo-edit to do set-version
102102
shell: bash
103103
run: |
104-
cargo binstall --no-confirm cargo-edit
104+
cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm cargo-edit
105105
106106
- name: Set version in Cargo.toml / Cargo.lock
107107
shell: bash

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Install cocogitto to get the next version number
9393
shell: bash
9494
run: |
95-
cargo binstall --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
95+
cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
9696
9797
- name: Bump
9898
shell: bash

.github/workflows/test-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- name: Install cocogitto to get the next version number
8787
shell: bash
8888
run: |
89-
cargo binstall --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
89+
cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm cocogitto --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ target }/{ bin }{ binary-ext }" --target x86_64-unknown-linux-musl --pkg-fmt tgz --bin cog --strategies crate-meta-data
9090
9191
- name: Bump
9292
shell: bash

0 commit comments

Comments
 (0)