From 8b9f6aed65e1dacefce22dd70ee4ac702d4f691a Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 16 Nov 2020 17:28:37 -0800 Subject: [PATCH] speculative fix for CI (#333) * speculative fix for CI GitHub made a breaking change, and this may get us through until this action is updated. refs: https://github.com/actions-rs/toolchain/pull/114 refs: https://github.com/actions-rs/toolchain/issues/124 --- .github/workflows/gen_centos7.yml | 4 +++- .github/workflows/gen_centos7_continuous.yml | 4 +++- .github/workflows/gen_centos7_tag.yml | 4 +++- .github/workflows/gen_centos8.yml | 4 +++- .github/workflows/gen_centos8_continuous.yml | 4 +++- .github/workflows/gen_centos8_tag.yml | 4 +++- .github/workflows/gen_debian10.3.yml | 4 +++- .../workflows/gen_debian10.3_continuous.yml | 4 +++- .github/workflows/gen_debian10.3_tag.yml | 4 +++- .github/workflows/gen_debian9.12.yml | 4 +++- .../workflows/gen_debian9.12_continuous.yml | 4 +++- .github/workflows/gen_debian9.12_tag.yml | 4 +++- .github/workflows/gen_fedora31.yml | 4 +++- .github/workflows/gen_fedora31_continuous.yml | 4 +++- .github/workflows/gen_fedora31_tag.yml | 4 +++- .github/workflows/gen_fedora32.yml | 4 +++- .github/workflows/gen_fedora32_continuous.yml | 4 +++- .github/workflows/gen_fedora32_tag.yml | 4 +++- .github/workflows/gen_macos.yml | 4 +++- .github/workflows/gen_macos_continuous.yml | 4 +++- .github/workflows/gen_macos_tag.yml | 4 +++- .github/workflows/gen_ubuntu16.yml | 4 +++- .github/workflows/gen_ubuntu16_continuous.yml | 4 +++- .github/workflows/gen_ubuntu16_tag.yml | 4 +++- .github/workflows/gen_ubuntu18.yml | 4 +++- .github/workflows/gen_ubuntu18_continuous.yml | 4 +++- .github/workflows/gen_ubuntu18_tag.yml | 4 +++- .github/workflows/gen_ubuntu19.10.yml | 4 +++- .../workflows/gen_ubuntu19.10_continuous.yml | 4 +++- .github/workflows/gen_ubuntu19.10_tag.yml | 4 +++- .github/workflows/gen_ubuntu20.04.yml | 4 +++- .../workflows/gen_ubuntu20.04_continuous.yml | 4 +++- .github/workflows/gen_ubuntu20.04_tag.yml | 4 +++- .github/workflows/gen_windows.yml | 4 +++- .github/workflows/gen_windows_continuous.yml | 4 +++- .github/workflows/gen_windows_tag.yml | 4 +++- ci/generate-workflows.py | 23 +++++++++++++++---- 37 files changed, 127 insertions(+), 40 deletions(-) diff --git a/.github/workflows/gen_centos7.yml b/.github/workflows/gen_centos7.yml index 94fefcb6f..8419966d8 100644 --- a/.github/workflows/gen_centos7.yml +++ b/.github/workflows/gen_centos7.yml @@ -53,12 +53,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_centos7_continuous.yml b/.github/workflows/gen_centos7_continuous.yml index 307743351..8dd0a1b89 100644 --- a/.github/workflows/gen_centos7_continuous.yml +++ b/.github/workflows/gen_centos7_continuous.yml @@ -63,12 +63,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_centos7_tag.yml b/.github/workflows/gen_centos7_tag.yml index 84b889ec6..5920e3f25 100644 --- a/.github/workflows/gen_centos7_tag.yml +++ b/.github/workflows/gen_centos7_tag.yml @@ -50,12 +50,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_centos8.yml b/.github/workflows/gen_centos8.yml index 952d49622..64f1eb337 100644 --- a/.github/workflows/gen_centos8.yml +++ b/.github/workflows/gen_centos8.yml @@ -40,12 +40,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_centos8_continuous.yml b/.github/workflows/gen_centos8_continuous.yml index fb9e49549..0104fda81 100644 --- a/.github/workflows/gen_centos8_continuous.yml +++ b/.github/workflows/gen_centos8_continuous.yml @@ -60,12 +60,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_centos8_tag.yml b/.github/workflows/gen_centos8_tag.yml index 0db0074e1..117a69b6e 100644 --- a/.github/workflows/gen_centos8_tag.yml +++ b/.github/workflows/gen_centos8_tag.yml @@ -37,12 +37,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_debian10.3.yml b/.github/workflows/gen_debian10.3.yml index 89a871cd3..7df075a71 100644 --- a/.github/workflows/gen_debian10.3.yml +++ b/.github/workflows/gen_debian10.3.yml @@ -40,12 +40,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_debian10.3_continuous.yml b/.github/workflows/gen_debian10.3_continuous.yml index 21689196e..3f9e51084 100644 --- a/.github/workflows/gen_debian10.3_continuous.yml +++ b/.github/workflows/gen_debian10.3_continuous.yml @@ -60,12 +60,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_debian10.3_tag.yml b/.github/workflows/gen_debian10.3_tag.yml index aa4dda3bd..10cfa0876 100644 --- a/.github/workflows/gen_debian10.3_tag.yml +++ b/.github/workflows/gen_debian10.3_tag.yml @@ -37,12 +37,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_debian9.12.yml b/.github/workflows/gen_debian9.12.yml index 59509089d..1ae5f3a9f 100644 --- a/.github/workflows/gen_debian9.12.yml +++ b/.github/workflows/gen_debian9.12.yml @@ -59,12 +59,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_debian9.12_continuous.yml b/.github/workflows/gen_debian9.12_continuous.yml index 42c5a7579..814ad1604 100644 --- a/.github/workflows/gen_debian9.12_continuous.yml +++ b/.github/workflows/gen_debian9.12_continuous.yml @@ -77,12 +77,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_debian9.12_tag.yml b/.github/workflows/gen_debian9.12_tag.yml index ddae0810e..ce80c2425 100644 --- a/.github/workflows/gen_debian9.12_tag.yml +++ b/.github/workflows/gen_debian9.12_tag.yml @@ -56,12 +56,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_fedora31.yml b/.github/workflows/gen_fedora31.yml index 2be96b355..1c02381ed 100644 --- a/.github/workflows/gen_fedora31.yml +++ b/.github/workflows/gen_fedora31.yml @@ -34,12 +34,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_fedora31_continuous.yml b/.github/workflows/gen_fedora31_continuous.yml index 3420c3d3c..f7f9251e1 100644 --- a/.github/workflows/gen_fedora31_continuous.yml +++ b/.github/workflows/gen_fedora31_continuous.yml @@ -46,12 +46,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_fedora31_tag.yml b/.github/workflows/gen_fedora31_tag.yml index 9af2129d6..7dba60295 100644 --- a/.github/workflows/gen_fedora31_tag.yml +++ b/.github/workflows/gen_fedora31_tag.yml @@ -31,12 +31,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_fedora32.yml b/.github/workflows/gen_fedora32.yml index 443fcfe08..cdbdde2a3 100644 --- a/.github/workflows/gen_fedora32.yml +++ b/.github/workflows/gen_fedora32.yml @@ -34,12 +34,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_fedora32_continuous.yml b/.github/workflows/gen_fedora32_continuous.yml index c2c62a1fa..9fac8dbd9 100644 --- a/.github/workflows/gen_fedora32_continuous.yml +++ b/.github/workflows/gen_fedora32_continuous.yml @@ -46,12 +46,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_fedora32_tag.yml b/.github/workflows/gen_fedora32_tag.yml index 4ef1a1776..9af94d9b1 100644 --- a/.github/workflows/gen_fedora32_tag.yml +++ b/.github/workflows/gen_fedora32_tag.yml @@ -31,12 +31,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_macos.yml b/.github/workflows/gen_macos.yml index 3f89ad934..88dc4ad04 100644 --- a/.github/workflows/gen_macos.yml +++ b/.github/workflows/gen_macos.yml @@ -36,12 +36,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Install System Deps" shell: bash run: | diff --git a/.github/workflows/gen_macos_continuous.yml b/.github/workflows/gen_macos_continuous.yml index a71f8a35a..77441892d 100644 --- a/.github/workflows/gen_macos_continuous.yml +++ b/.github/workflows/gen_macos_continuous.yml @@ -36,12 +36,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Install System Deps" shell: bash run: | diff --git a/.github/workflows/gen_macos_tag.yml b/.github/workflows/gen_macos_tag.yml index bbd08f6f4..b93d317ae 100644 --- a/.github/workflows/gen_macos_tag.yml +++ b/.github/workflows/gen_macos_tag.yml @@ -33,12 +33,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Install System Deps" shell: bash run: | diff --git a/.github/workflows/gen_ubuntu16.yml b/.github/workflows/gen_ubuntu16.yml index b8e4e73c1..baa9783ab 100644 --- a/.github/workflows/gen_ubuntu16.yml +++ b/.github/workflows/gen_ubuntu16.yml @@ -34,12 +34,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu16_continuous.yml b/.github/workflows/gen_ubuntu16_continuous.yml index aacc80d82..0c5921e4a 100644 --- a/.github/workflows/gen_ubuntu16_continuous.yml +++ b/.github/workflows/gen_ubuntu16_continuous.yml @@ -46,12 +46,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu16_tag.yml b/.github/workflows/gen_ubuntu16_tag.yml index a3bfab606..28f8be7fb 100644 --- a/.github/workflows/gen_ubuntu16_tag.yml +++ b/.github/workflows/gen_ubuntu16_tag.yml @@ -31,12 +31,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu18.yml b/.github/workflows/gen_ubuntu18.yml index 745d2d467..d1577abca 100644 --- a/.github/workflows/gen_ubuntu18.yml +++ b/.github/workflows/gen_ubuntu18.yml @@ -34,12 +34,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu18_continuous.yml b/.github/workflows/gen_ubuntu18_continuous.yml index 786bcfbcc..34bcb3f9e 100644 --- a/.github/workflows/gen_ubuntu18_continuous.yml +++ b/.github/workflows/gen_ubuntu18_continuous.yml @@ -46,12 +46,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu18_tag.yml b/.github/workflows/gen_ubuntu18_tag.yml index cadf943a9..ee66201ca 100644 --- a/.github/workflows/gen_ubuntu18_tag.yml +++ b/.github/workflows/gen_ubuntu18_tag.yml @@ -31,12 +31,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu19.10.yml b/.github/workflows/gen_ubuntu19.10.yml index e64c6cd56..9f770339d 100644 --- a/.github/workflows/gen_ubuntu19.10.yml +++ b/.github/workflows/gen_ubuntu19.10.yml @@ -40,12 +40,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu19.10_continuous.yml b/.github/workflows/gen_ubuntu19.10_continuous.yml index b17a4cf48..70d08c818 100644 --- a/.github/workflows/gen_ubuntu19.10_continuous.yml +++ b/.github/workflows/gen_ubuntu19.10_continuous.yml @@ -60,12 +60,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu19.10_tag.yml b/.github/workflows/gen_ubuntu19.10_tag.yml index b20e0b008..dd76492c7 100644 --- a/.github/workflows/gen_ubuntu19.10_tag.yml +++ b/.github/workflows/gen_ubuntu19.10_tag.yml @@ -37,12 +37,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu20.04.yml b/.github/workflows/gen_ubuntu20.04.yml index 4c7456ca5..9c779df42 100644 --- a/.github/workflows/gen_ubuntu20.04.yml +++ b/.github/workflows/gen_ubuntu20.04.yml @@ -40,12 +40,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu20.04_continuous.yml b/.github/workflows/gen_ubuntu20.04_continuous.yml index 23f45697c..a8b19d500 100644 --- a/.github/workflows/gen_ubuntu20.04_continuous.yml +++ b/.github/workflows/gen_ubuntu20.04_continuous.yml @@ -60,12 +60,14 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_ubuntu20.04_tag.yml b/.github/workflows/gen_ubuntu20.04_tag.yml index c72c1da2e..be378e7e2 100644 --- a/.github/workflows/gen_ubuntu20.04_tag.yml +++ b/.github/workflows/gen_ubuntu20.04_tag.yml @@ -37,12 +37,14 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_windows.yml b/.github/workflows/gen_windows.yml index 8c13ab34d..f4db5f957 100644 --- a/.github/workflows/gen_windows.yml +++ b/.github/workflows/gen_windows.yml @@ -28,13 +28,15 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" target: "x86_64-pc-windows-msvc" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_windows_continuous.yml b/.github/workflows/gen_windows_continuous.yml index de06ca29b..1f20de3c1 100644 --- a/.github/workflows/gen_windows_continuous.yml +++ b/.github/workflows/gen_windows_continuous.yml @@ -32,13 +32,15 @@ jobs: - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" target: "x86_64-pc-windows-msvc" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/.github/workflows/gen_windows_tag.yml b/.github/workflows/gen_windows_tag.yml index fb3b24057..c490518d1 100644 --- a/.github/workflows/gen_windows_tag.yml +++ b/.github/workflows/gen_windows_tag.yml @@ -25,13 +25,15 @@ jobs: shell: bash run: "git fetch --prune --unshallow" - name: "Install Rust" - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6 with: profile: "minimal" toolchain: "stable" override: true components: "rustfmt" target: "x86_64-pc-windows-msvc" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Cache cargo" uses: actions/cache@v2 with: diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index b9c79ff85..34fd01f89 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -208,7 +208,10 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git params["target"] = self.rust_target steps = [ ActionStep( - name="Install Rust", action="actions-rs/toolchain@v1", params=params, + name="Install Rust", + action="actions-rs/toolchain@dependabot/npm_and_yarn/actions/core-1.2.6", + params=params, + env={"ACTIONS_ALLOW_UNSECURE_COMMANDS": "true"}, ), ] if cache: @@ -329,7 +332,9 @@ cargo build --all --release""", "Upload to Tagged Release", action="softprops/action-gh-release@v1", params={"files": "\n".join(patterns), "prerelease": True}, - env={"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",}, + env={ + "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}", + }, ) ] @@ -478,7 +483,12 @@ cargo build --all --release""", env = self.global_env() env["BUILD_REASON"] = "Schedule" - return Job(runs_on=self.os, container=self.container, steps=steps, env=env,) + return Job( + runs_on=self.os, + container=self.container, + steps=steps, + env=env, + ) def tag(self): steps = self.prep_environment() @@ -490,7 +500,12 @@ cargo build --all --release""", steps += self.update_homebrew_tap() env = self.global_env() - return Job(runs_on=self.os, container=self.container, steps=steps, env=env,) + return Job( + runs_on=self.os, + container=self.container, + steps=steps, + env=env, + ) TARGETS = [