Skip to content

Commit

Permalink
packer - Switch to dtolnay/rust-toolchain@stable & bump `actions/…
Browse files Browse the repository at this point in the history
[email protected]` (#4878)

Summary:
This diff switches to `dtolnay/rust-toolchain@stable` since `actions-rs/toolchain` is **NOT maintained** and bumps `actions/[email protected]`

> **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/[email protected]` pulls in `1.42.0`.

### Ref.:
- `actions-rs/toolchain` is **NOT Maintained**, issue:
actions-rs/toolchain#216
- `dtolnay/rust-toolchain@stable` usage note: https://github.com/dtolnay/rust-toolchain#example-workflow
- `actions/[email protected]` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3

## Changelog:

[GENERAL] [SECURITY] - [Actions] `packer` - Switch to `dtolnay/rust-toolchain@stable` & bump `actions/[email protected]`

Pull Request resolved: #4878

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47056977

Pulled By: passy

fbshipit-source-id: 68023fcce355831314af2f31d514ed95efb7788c
  • Loading branch information
Pranav-yadav authored and facebook-github-bot committed Jun 27, 2023
1 parent dac8c5b commit d3861c5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/packer.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Packer

# This action runs on 'git push' and PRs
on: [push, pull_request]

jobs:
build:
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/[email protected]"
# pulls in '1.42.0'.
- name: Test
run: cd packer && cargo test
- name: Format
Expand Down

0 comments on commit d3861c5

Please sign in to comment.