Repository: mozilla/cbindgen (language: rust)

Issue:
Github actions are broken
Error: 
> dtolnay/rust-toolchain@stable, dtolnay/rust-toolchain@1.54, and dtolnay/rust-toolchain@nightly are not allowed to be used in mozilla/cbindgen. Actions in this workflow must be: within a repository that belongs to your Enterprise account, created by GitHub, or matching the following: !/mozilla/**, !mozilla/**, ./**, 10up/wpcs-action@*, aws-actions/*, docker/*, pypa/gh-action-pypi-publish@v1.4.2, slackapi/slack-github-action@*, google-github-actions/*, erlef/setup-beam@v1, yesolutions/mirror-action@*, codecov/codecov-action@*, tj-actions/changed-files@*, tj-actions/glob@*, vmactions/freebsd-vm@v0, actions-rs/toolchain@v1, shivammathur/setup-php@*, EmbarkStudios/*, dependabot/fetch-metadata@*, ilammy/msvc-dev-cmd@v1*, canonical/actions/*, canonical/setup-lxd@*.

@emilio Could you whitelist the `dtolnay` actions?


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/cbindgen.yml b/.github/workflows/cbindgen.yml
index 65aa42db2..4d06db0db 100644
--- a/.github/workflows/cbindgen.yml
+++ b/.github/workflows/cbindgen.yml
@@ -17,9 +17,10 @@ jobs:
     - uses: actions/checkout@v3
 
     - name: Install stable
-      uses: dtolnay/rust-toolchain@stable
+      uses: actions-rs/toolchain@v1
       with:
-        components: "clippy, rustfmt"
+        toolchain: stable
+        components: clippy, rustfmt
 
     - name: Run rustfmt
       run: |
@@ -31,11 +32,14 @@ jobs:
 
     - name: Install minimum supported Rust version
       id: msrv
-      uses: dtolnay/rust-toolchain@1.54
+      uses: actions-rs/toolchain@v1
+      with:
+        toolchain: 1.57
+        override: true
 
     - name: Build with minimum supported Rust version
       run: |
-        cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose
+        cargo test nonexistent-test --verbose
 
   build:
 
@@ -44,8 +48,10 @@ jobs:
     steps:
     - uses: actions/checkout@v3
 
-    - name: Install stable Rust
-      uses: dtolnay/rust-toolchain@stable
+    - name: Install stable
+      uses: actions-rs/toolchain@v1
+      with:
+        toolchain: stable
 
     - name: Install Python
       uses: actions/setup-python@v4
@@ -73,7 +79,9 @@ jobs:
         (cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose)
 
     - name: Install nightly Rust
-      uses: dtolnay/rust-toolchain@nightly
+      uses: actions-rs/toolchain@v1
+      with:
+        toolchain: nightly
 
     - name: Test
       env:
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 379e476d4..994ea3b8e 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -15,7 +15,9 @@ jobs:
     - uses: actions/checkout@v3
 
     - name: Install stable
-      uses: dtolnay/rust-toolchain@stable
+      uses: actions-rs/toolchain@v1
+      with:
+        toolchain: stable
 
     - name: Build cbindgen
       run: |
diff --git a/CHANGES b/CHANGES
index 0751f59ef..04e64b5bd 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+## Unreleased
+
+      * Update MSRV to 1.57
+
 ## 0.24.5
 
       * Don't enforce tempfile version.


Test patch: