From e2a6b2de9cf8b09f8d2b8785d30a56726df5c93b Mon Sep 17 00:00:00 2001 From: Mike Nguyen Date: Wed, 14 May 2025 14:38:32 +0100 Subject: [PATCH] chore: limit the visibility of the cargo token Addresses #218 Signed-off-by: Mike Nguyen --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ba36b47..f2220eed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,6 @@ on: env: CARGO_TERM_COLOR: always - CARGO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} PROTOC_VERSION: 24.4 RUSTFLAGS: "-D warnings" @@ -145,4 +144,6 @@ jobs: version: ${{ env.PROTOC_VERSION }} - uses: actions/checkout@v4 - name: cargo publish - ${{ matrix.crate }} + env: + CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }} run: cargo publish --manifest-path ${{ matrix.crate }}/Cargo.toml --token ${{ env.CARGO_TOKEN }}