From d3861c53a4ae59f9a75f668507b59c4aa6886d85 Mon Sep 17 00:00:00 2001 From: Pranav Yadav Date: Tue, 27 Jun 2023 08:56:55 -0700 Subject: [PATCH] `packer` - Switch to `dtolnay/rust-toolchain@stable` & bump `actions/checkout@v3.5.3` (#4878) Summary: This diff switches to `dtolnay/rust-toolchain@stable` since `actions-rs/toolchain` is **NOT maintained** and bumps `actions/checkout@v3.5.3` > **Note**: > `uses: dtolnay/rust-toolchain@stable` > The selection of Rust toolchain is made based on the particular `rev` of this Action being requested. For example `dtolnay/rust-toolchain@nightly` pulls in the `nightly` Rust toolchain, while `dtolnay/rust-toolchain@1.42.0` pulls in `1.42.0`. ### Ref.: - `actions-rs/toolchain` is **NOT Maintained**, issue: https://github.com/actions-rs/toolchain/issues/216 - `dtolnay/rust-toolchain@stable` usage note: https://github.com/dtolnay/rust-toolchain#example-workflow - `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3 ## Changelog: [GENERAL] [SECURITY] - [Actions] `packer` - Switch to `dtolnay/rust-toolchain@stable` & bump `actions/checkout@v3.5.3` Pull Request resolved: https://github.com/facebook/flipper/pull/4878 Test Plan: - Workflow should run and work as usual. Reviewed By: lblasa Differential Revision: D47056977 Pulled By: passy fbshipit-source-id: 68023fcce355831314af2f31d514ed95efb7788c --- .github/workflows/packer.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/packer.yml b/.github/workflows/packer.yml index ab4e87bc7..6706b55ef 100644 --- a/.github/workflows/packer.yml +++ b/.github/workflows/packer.yml @@ -1,5 +1,5 @@ name: Packer - +# This action runs on 'git push' and PRs on: [push, pull_request] jobs: @@ -7,11 +7,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.5.3 - name: Setup toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: 1.48.0 + uses: dtolnay/rust-toolchain@stable + # The selection of Rust toolchain is made based on the particular '@rev' + # of this Action being requested. For example "dtolnay/rust-toolchain@nightly" + # pulls in the nightly Rust toolchain, while "dtolnay/rust-toolchain@1.42.0" + # pulls in '1.42.0'. - name: Test run: cd packer && cargo test - name: Format