From ef61081caa6c20f9495563855969e8d820559dfe Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 8 Jan 2024 05:01:09 +0900 Subject: [PATCH] chore(ci): update outdated actions and replace unmaintained action (#506) - Update actions/checkout, arduino/setup-protoc, and taiki-e/create-gh-release-action actions. - Replace unmaintained actions-rs/audit-check action with rustsec/audit-check action (rustsec fork of actions-rs/audit-check. see also https://github.com/rustsec/audit-check/issues/2). --- .github/workflows/audit.yaml | 5 +++-- .github/workflows/ci.yaml | 8 ++++---- .github/workflows/release.yaml | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index f4d89ead1..98a58fba2 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -29,7 +29,8 @@ jobs: security_audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions-rs/audit-check@v1 + - uses: actions/checkout@v4 + # https://github.com/rustsec/audit-check/issues/2 + - uses: rustsec/audit-check@master with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 59f697eb0..3f7c3a7ce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain uses: dtolnay/rust-toolchain@master @@ -60,7 +60,7 @@ jobs: os: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install ${{ matrix.rust }} toolchain uses: dtolnay/rust-toolchain@master @@ -69,7 +69,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Install Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -87,7 +87,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain uses: dtolnay/rust-toolchain@master diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 458785021..ac7067930 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,8 +14,8 @@ jobs: if: github.repository_owner == 'tokio-rs' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: taiki-e/create-gh-release-action@v1.3.0 + - uses: actions/checkout@v4 + - uses: taiki-e/create-gh-release-action@v1 with: prefix: "(console-subscriber)|(console-api)|(tokio-console)" changelog: "$prefix/CHANGELOG.md" @@ -44,10 +44,10 @@ jobs: os: macos-latest - target: aarch64-pc-windows-msvc os: windows-latest - + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: taiki-e/upload-rust-binary-action@v1 with: bin: tokio-console