From 444cdc3f913535035a43a863b9d1c90a91652059 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Fri, 9 Aug 2024 11:42:20 -0400 Subject: [PATCH 1/2] Add set env --- .github/workflows/rust.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7e6f17cf..b0ab0a47 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -70,6 +70,11 @@ jobs: name: crate path: ./target/package/*-*.crate + - name: Set Env + uses: Chia-Network/actions/setjobenv@main + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish to crates.io if: env.RELEASE == 'true' env: From 4a80dd34558e74ddda42adb4bd6f2ce15db6de14 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Fri, 9 Aug 2024 11:52:17 -0400 Subject: [PATCH 2/2] Permissions block --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b0ab0a47..00490f2f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,6 +10,10 @@ on: branches: - "**" +permissions: + id-token: write + contents: read + jobs: fuzz_targets: name: Run fuzzers