From 401004d606914220743646ea5bf13d3ad5be1164 Mon Sep 17 00:00:00 2001 From: Boshen Date: Fri, 13 Dec 2024 13:44:10 +0800 Subject: [PATCH 1/4] ci: fix more zizmor warnings --- .github/workflows/autofix.yml | 2 +- .github/workflows/benchmark.yml | 10 ++++---- .github/workflows/bloat.yml | 2 +- .github/workflows/cargo-llvm-lines.yml | 2 +- .github/workflows/ci.yml | 24 ++++++++++---------- .github/workflows/ci_vscode.yml | 8 +++---- .github/workflows/codecov.yml | 4 ++-- .github/workflows/deny.yml | 2 +- .github/workflows/link-check.yml | 2 +- .github/workflows/lint-rules.yml | 2 +- .github/workflows/miri.yml | 2 +- .github/workflows/pr.yml | 4 ++-- .github/workflows/prepare_release_crates.yml | 6 ++--- .github/workflows/prepare_release_oxlint.yml | 8 +++---- .github/workflows/release_napi_parser.yml | 8 +++---- .github/workflows/release_napi_transform.yml | 8 +++---- .github/workflows/release_oxlint.yml | 12 +++++----- .github/workflows/release_types.yml | 4 ++-- .github/workflows/release_vscode.yml | 6 ++--- .github/workflows/release_wasm.yml | 4 ++-- 20 files changed, 60 insertions(+), 60 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index e04ef14859924..37cfc6a74cc9c 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -15,7 +15,7 @@ jobs: autofix: runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index f83a890916b51..b05ecb048fe2d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -64,7 +64,7 @@ jobs: steps: - name: Checkout Branch - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: @@ -115,7 +115,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Branch - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: @@ -154,7 +154,7 @@ jobs: steps: - name: Checkout Branch - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - name: Download Binary uses: actions/download-artifact@v4 @@ -206,7 +206,7 @@ jobs: # if: false # steps: # - name: Checkout Branch - # uses: taiki-e/checkout-action@v1 + # uses: taiki-e/checkout-action@v1.3.1 # - uses: oxc-project/setup-rust@1.0.0 # with: @@ -278,7 +278,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Branch - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm diff --git a/.github/workflows/bloat.yml b/.github/workflows/bloat.yml index f6cd825265738..4bed26a8a801e 100644 --- a/.github/workflows/bloat.yml +++ b/.github/workflows/bloat.yml @@ -14,7 +14,7 @@ jobs: name: Cargo Bloat runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: diff --git a/.github/workflows/cargo-llvm-lines.yml b/.github/workflows/cargo-llvm-lines.yml index 86b53fec665f7..ba4de739e476b 100644 --- a/.github/workflows/cargo-llvm-lines.yml +++ b/.github/workflows/cargo-llvm-lines.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8cd069d052dea..62aff4418a3f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - os: macos-latest runs-on: ${{ matrix.os }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: # warm cache factory for all other CI jobs @@ -51,7 +51,7 @@ jobs: if: ${{ github.ref_name == 'main' }} runs-on: windows-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 # Unsung heros of the internet, who led me here to speed up window's slowness: # https://github.com/actions/cache/issues/752#issuecomment-1847036770 # https://github.com/astral-sh/uv/blob/502e04200d52de30d3159894833b3db4f0d6644d/.github/workflows/ci.yml#L158 @@ -106,13 +106,13 @@ jobs: # Insta is not able to run on wasmtime, omit the packages that depend on it TEST_FLAGS: "-p oxc_ast -p oxc_cfg -p oxc_regular_expression -- --nocapture" steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: cache-key: wasi save-cache: ${{ github.ref_name == 'main' }} - run: rustup target add wasm32-wasip1-threads - - uses: bytecodealliance/actions/wasmtime/setup@v1 + - uses: bytecodealliance/actions/wasmtime/setup@v1.3.1 - run: cargo test --target wasm32-wasip1-threads ${TEST_FLAGS} - run: git diff --exit-code # Must commit everything @@ -120,7 +120,7 @@ jobs: name: Check wasm32-unknown-unknown runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: @@ -146,7 +146,7 @@ jobs: name: Spell Check runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: crate-ci/typos@v1.28.2 with: files: . @@ -155,7 +155,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: save-cache: ${{ github.ref_name == 'main' }} @@ -176,7 +176,7 @@ jobs: name: Doc runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: cache-key: warm @@ -187,7 +187,7 @@ jobs: name: Conformance runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: dorny/paths-filter@v3 id: filter @@ -234,7 +234,7 @@ jobs: name: Minification Size runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: dorny/paths-filter@v3 id: filter @@ -262,7 +262,7 @@ jobs: name: AST Changes runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: dorny/paths-filter@v3 id: filter @@ -303,7 +303,7 @@ jobs: name: Test NAPI runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: dorny/paths-filter@v3 id: filter with: diff --git a/.github/workflows/ci_vscode.yml b/.github/workflows/ci_vscode.yml index 565360a690d72..a35496f1a36e5 100644 --- a/.github/workflows/ci_vscode.yml +++ b/.github/workflows/ci_vscode.yml @@ -28,7 +28,7 @@ jobs: name: Compile runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm - name: Compile VSCode @@ -39,7 +39,7 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm - name: Lint VSCode @@ -50,7 +50,7 @@ jobs: name: Type-Check runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm - name: Type-Check VSCode @@ -61,7 +61,7 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm - name: Test VSCode diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 312b3f62c9087..000b965dd27b2 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - name: Clone submodules uses: ./.github/actions/clone-submodules @@ -56,7 +56,7 @@ jobs: steps: - name: Checkout if: env.CODECOV_TOKEN - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - name: Download coverage file if: env.CODECOV_TOKEN diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index 5455d6af038aa..7e09b4c538b9a 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -25,7 +25,7 @@ jobs: name: Cargo Deny runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index fba9877aee64f..04c8f541c979c 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - name: Check Links uses: lycheeverse/lychee-action@master diff --git a/.github/workflows/lint-rules.yml b/.github/workflows/lint-rules.yml index 6baca9bbc8c69..0318ded351482 100644 --- a/.github/workflows/lint-rules.yml +++ b/.github/workflows/lint-rules.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Branch - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/miri.yml b/.github/workflows/miri.yml index bad4121b92207..b449c05d9370f 100644 --- a/.github/workflows/miri.yml +++ b/.github/workflows/miri.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: taiki-e/checkout-action@v1 + uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f6173afd5fb9d..d8fceee14fb2d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,7 +16,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: actions/labeler@v5 @@ -78,7 +78,7 @@ jobs: echo "CATEGORY=$CATEGORY" >> $GITHUB_OUTPUT - name: Add category label - uses: actions-ecosystem/action-add-labels@v1 + uses: actions-ecosystem/action-add-labels@v1.3.1 if: ${{ steps.get-category.outputs.CATEGORY != '' }} with: labels: ${{ steps.get-category.outputs.CATEGORY }} diff --git a/.github/workflows/prepare_release_crates.yml b/.github/workflows/prepare_release_crates.yml index 047e9c97fd28b..737ae09b43447 100644 --- a/.github/workflows/prepare_release_crates.yml +++ b/.github/workflows/prepare_release_crates.yml @@ -12,7 +12,7 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: oxc-project/setup-rust@1.0.0 with: cache-key: warm @@ -34,7 +34,7 @@ jobs: name: Trigger Monitor Oxc runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: peter-evans/create-or-update-comment@v4 id: comment @@ -43,7 +43,7 @@ jobs: issue-number: ${{ needs.prepare.outputs.pull-request-number }} body: Triggering Monitor Oxc https://github.com/oxc-project/monitor-oxc/actions/workflows/ci.yml - - uses: benc-uk/workflow-dispatch@v1 + - uses: benc-uk/workflow-dispatch@v1.3.1 with: repo: oxc-project/monitor-oxc workflow: ci.yml diff --git a/.github/workflows/prepare_release_oxlint.yml b/.github/workflows/prepare_release_oxlint.yml index abbf409e3e541..032e5b8488eff 100644 --- a/.github/workflows/prepare_release_oxlint.yml +++ b/.github/workflows/prepare_release_oxlint.yml @@ -27,7 +27,7 @@ jobs: pull-requests: write contents: write steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: peter-evans/create-or-update-comment@v4 id: comment @@ -36,7 +36,7 @@ jobs: issue-number: ${{ needs.prepare.outputs.pull-request-number }} body: Triggering Ecosystem CI https://github.com/oxc-project/oxlint-ecosystem-ci/actions/workflows/ci.yml - - uses: benc-uk/workflow-dispatch@v1 + - uses: benc-uk/workflow-dispatch@v1.3.1 with: repo: oxc-project/oxlint-ecosystem-ci workflow: ci.yml @@ -51,8 +51,8 @@ jobs: permissions: actions: write steps: - - uses: taiki-e/checkout-action@v1 - - uses: benc-uk/workflow-dispatch@v1 + - uses: taiki-e/checkout-action@v1.3.1 + - uses: benc-uk/workflow-dispatch@v1.3.1 with: repo: oxc-project/oxc-project.github.io workflow: release.yml diff --git a/.github/workflows/release_napi_parser.yml b/.github/workflows/release_napi_parser.yml index 59162c751e959..69363b957b98d 100644 --- a/.github/workflows/release_napi_parser.yml +++ b/.github/workflows/release_napi_parser.yml @@ -23,7 +23,7 @@ jobs: version: ${{ env.version }} version_changed: ${{ steps.version.outputs.changed }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes uses: EndBug/version-check@v2 @@ -88,7 +88,7 @@ jobs: name: Package ${{ matrix.target }} runs-on: ${{ matrix.os }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 ### install musl dependencies ### # @@ -168,7 +168,7 @@ jobs: needs: - build steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm @@ -178,7 +178,7 @@ jobs: merge-multiple: true - name: Unzip - uses: montudor/action-zip@v1 + uses: montudor/action-zip@v1.3.1 with: args: unzip -qq *.zip -d . diff --git a/.github/workflows/release_napi_transform.yml b/.github/workflows/release_napi_transform.yml index 356403fcaf7ca..3cdc5cb160d6b 100644 --- a/.github/workflows/release_napi_transform.yml +++ b/.github/workflows/release_napi_transform.yml @@ -23,7 +23,7 @@ jobs: version: ${{ env.version }} version_changed: ${{ steps.version.outputs.changed }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes uses: EndBug/version-check@v2 @@ -88,7 +88,7 @@ jobs: name: Package ${{ matrix.target }} runs-on: ${{ matrix.os }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 ### install musl dependencies ### @@ -168,7 +168,7 @@ jobs: needs: - build steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm @@ -178,7 +178,7 @@ jobs: merge-multiple: true - name: Unzip - uses: montudor/action-zip@v1 + uses: montudor/action-zip@v1.3.1 with: args: unzip -qq *.zip -d . diff --git a/.github/workflows/release_oxlint.yml b/.github/workflows/release_oxlint.yml index 3c20ba25b06c3..d8b458cdf54d2 100644 --- a/.github/workflows/release_oxlint.yml +++ b/.github/workflows/release_oxlint.yml @@ -20,7 +20,7 @@ jobs: version_changed: ${{ steps.version.outputs.changed }} version: ${{ steps.version.outputs.version }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes uses: EndBug/version-check@v2 @@ -83,7 +83,7 @@ jobs: env: OXC_VERSION: ${{ needs.check.outputs.version }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Install cross uses: taiki-e/install-action@cross @@ -146,7 +146,7 @@ jobs: needs: [check, build] runs-on: ubuntu-latest permissions: - contents: write # for softprops/action-gh-release@v1 + contents: write # for softprops/action-gh-release@v1.3.1 id-token: write # for `pnpm publish --provenance` steps: - uses: actions/checkout@v4 @@ -175,7 +175,7 @@ jobs: merge-multiple: true - name: Unzip - uses: montudor/action-zip@v1 + uses: montudor/action-zip@v1.3.1 with: args: unzip -qq *.zip -d . @@ -242,8 +242,8 @@ jobs: name: Update eslint-plugin-oxlint runs-on: ubuntu-latest steps: - - uses: taiki-e/checkout-action@v1 - - uses: benc-uk/workflow-dispatch@v1 + - uses: taiki-e/checkout-action@v1.3.1 + - uses: benc-uk/workflow-dispatch@v1.3.1 with: repo: oxc-project/eslint-plugin-oxlint workflow: bump_oxlint.yml diff --git a/.github/workflows/release_types.yml b/.github/workflows/release_types.yml index 70df5423acb76..8b7d431b4a5db 100644 --- a/.github/workflows/release_types.yml +++ b/.github/workflows/release_types.yml @@ -20,7 +20,7 @@ jobs: version: ${{ steps.version.outputs.version }} version_changed: ${{ steps.version.outputs.changed }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes uses: EndBug/version-check@v2 @@ -46,7 +46,7 @@ jobs: permissions: id-token: write # for `pnpm publish --provenance` steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm diff --git a/.github/workflows/release_vscode.yml b/.github/workflows/release_vscode.yml index 30d3d26ea42fd..7af287abf1166 100644 --- a/.github/workflows/release_vscode.yml +++ b/.github/workflows/release_vscode.yml @@ -25,7 +25,7 @@ jobs: version: ${{ env.version }} version_changed: ${{ steps.version.outputs.changed }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Check vscode version changes uses: EndBug/version-check@v2 @@ -72,7 +72,7 @@ jobs: name: Package ${{ matrix.code-target }} runs-on: ${{ matrix.os }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm @@ -129,7 +129,7 @@ jobs: permissions: contents: write steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Download extension artifacts uses: actions/download-artifact@v4 diff --git a/.github/workflows/release_wasm.yml b/.github/workflows/release_wasm.yml index a3756cbad753b..a901e6adc1803 100644 --- a/.github/workflows/release_wasm.yml +++ b/.github/workflows/release_wasm.yml @@ -20,7 +20,7 @@ jobs: version: ${{ steps.version.outputs.version }} version_changed: ${{ steps.version.outputs.changed }} steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes uses: EndBug/version-check@v2 @@ -46,7 +46,7 @@ jobs: permissions: id-token: write # for `pnpm publish --provenance` steps: - - uses: taiki-e/checkout-action@v1 + - uses: taiki-e/checkout-action@v1.3.1 - uses: ./.github/actions/pnpm From 79682a2a5e1d2d6c68c407779263b0d77b503842 Mon Sep 17 00:00:00 2001 From: Boshen Date: Fri, 13 Dec 2024 18:43:39 +0800 Subject: [PATCH 2/4] w --- .github/workflows/release_napi_parser.yml | 4 +++- .github/workflows/release_napi_transform.yml | 4 +++- .github/workflows/release_oxlint.yml | 4 +++- .github/workflows/release_vscode.yml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_napi_parser.yml b/.github/workflows/release_napi_parser.yml index 69363b957b98d..2deb8b099eb8b 100644 --- a/.github/workflows/release_napi_parser.yml +++ b/.github/workflows/release_napi_parser.yml @@ -107,7 +107,9 @@ jobs: - name: Install cross if: ${{ !contains(matrix.target, 'musl') }} - uses: taiki-e/install-action@cross + uses: taiki-e/install-action@v2 + with: + tool: cross ### Build diff --git a/.github/workflows/release_napi_transform.yml b/.github/workflows/release_napi_transform.yml index 3cdc5cb160d6b..c2900cec821cc 100644 --- a/.github/workflows/release_napi_transform.yml +++ b/.github/workflows/release_napi_transform.yml @@ -107,7 +107,9 @@ jobs: - name: Install cross if: ${{ !contains(matrix.target, 'musl') }} - uses: taiki-e/install-action@cross + uses: taiki-e/install-action@v2 + with: + tool: cross ### Build diff --git a/.github/workflows/release_oxlint.yml b/.github/workflows/release_oxlint.yml index d8b458cdf54d2..84ee03dbbbe48 100644 --- a/.github/workflows/release_oxlint.yml +++ b/.github/workflows/release_oxlint.yml @@ -86,7 +86,9 @@ jobs: - uses: taiki-e/checkout-action@v1.3.1 - name: Install cross - uses: taiki-e/install-action@cross + uses: taiki-e/install-action@v2 + with: + tool: cross - name: Rust Cache uses: Swatinem/rust-cache@v2 diff --git a/.github/workflows/release_vscode.yml b/.github/workflows/release_vscode.yml index 7af287abf1166..08054b1248570 100644 --- a/.github/workflows/release_vscode.yml +++ b/.github/workflows/release_vscode.yml @@ -81,7 +81,9 @@ jobs: run: pnpm run compile - name: Install cross - uses: taiki-e/install-action@cross + uses: taiki-e/install-action@v2 + with: + tool: cross - name: Rust Cache uses: Swatinem/rust-cache@v2 From 3c2969a2edb006103226bf71017c64b80498c843 Mon Sep 17 00:00:00 2001 From: Boshen Date: Fri, 13 Dec 2024 18:45:04 +0800 Subject: [PATCH 3/4] u --- .github/workflows/benchmark.yml | 6 +++--- .github/workflows/cargo-llvm-lines.yml | 2 +- .github/workflows/release_napi_parser.yml | 8 ++++---- .github/workflows/release_napi_transform.yml | 8 ++++---- .github/workflows/release_oxlint.yml | 8 ++++---- .github/workflows/release_vscode.yml | 6 +++--- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b05ecb048fe2d..ad4caffa5f331 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -168,7 +168,7 @@ jobs: chmod +x ./target/codspeed/oxc_benchmark/* - name: Install codspeed - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cargo-codspeed @@ -214,7 +214,7 @@ jobs: # save-cache: ${{ github.ref_name == 'main' }} # - name: Install codspeed - # uses: taiki-e/install-action@v2 + # uses: taiki-e/install-action@v2.46.8 # with: # tool: cargo-codspeed @@ -254,7 +254,7 @@ jobs: # rm -rf target/codspeed/oxc_benchmark/*.d # - name: Run Rust benchmark - # uses: CodSpeedHQ/action@v2 + # uses: CodSpeedHQ/action@v2.46.8 # timeout-minutes: 30 # with: # run: cargo codspeed run diff --git a/.github/workflows/cargo-llvm-lines.yml b/.github/workflows/cargo-llvm-lines.yml index ba4de739e476b..1880c9c0a2a83 100644 --- a/.github/workflows/cargo-llvm-lines.yml +++ b/.github/workflows/cargo-llvm-lines.yml @@ -20,7 +20,7 @@ jobs: - uses: oxc-project/setup-rust@1.0.0 - name: Install cargo-llvm-lines - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cargo-llvm-lines diff --git a/.github/workflows/release_napi_parser.yml b/.github/workflows/release_napi_parser.yml index 2deb8b099eb8b..b4f118b57ef59 100644 --- a/.github/workflows/release_napi_parser.yml +++ b/.github/workflows/release_napi_parser.yml @@ -26,7 +26,7 @@ jobs: - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes - uses: EndBug/version-check@v2 + uses: EndBug/version-check@v2.46.8 id: version with: static-checking: localIsNew @@ -92,14 +92,14 @@ jobs: ### install musl dependencies ### # - - uses: goto-bus-stop/setup-zig@v2 + - uses: goto-bus-stop/setup-zig@v2.46.8 if: ${{ contains(matrix.target, 'musl') }} with: version: 0.11.0 - name: Install cargo-zigbuild if: ${{ contains(matrix.target, 'musl') }} - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cargo-zigbuild @@ -107,7 +107,7 @@ jobs: - name: Install cross if: ${{ !contains(matrix.target, 'musl') }} - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cross diff --git a/.github/workflows/release_napi_transform.yml b/.github/workflows/release_napi_transform.yml index c2900cec821cc..940c7b7626ff9 100644 --- a/.github/workflows/release_napi_transform.yml +++ b/.github/workflows/release_napi_transform.yml @@ -26,7 +26,7 @@ jobs: - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes - uses: EndBug/version-check@v2 + uses: EndBug/version-check@v2.46.8 id: version with: static-checking: localIsNew @@ -92,14 +92,14 @@ jobs: ### install musl dependencies ### - - uses: goto-bus-stop/setup-zig@v2 + - uses: goto-bus-stop/setup-zig@v2.46.8 if: ${{ contains(matrix.target, 'musl') }} with: version: 0.11.0 - name: Install cargo-zigbuild if: ${{ contains(matrix.target, 'musl') }} - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cargo-zigbuild @@ -107,7 +107,7 @@ jobs: - name: Install cross if: ${{ !contains(matrix.target, 'musl') }} - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cross diff --git a/.github/workflows/release_oxlint.yml b/.github/workflows/release_oxlint.yml index 84ee03dbbbe48..bbbbe317fa308 100644 --- a/.github/workflows/release_oxlint.yml +++ b/.github/workflows/release_oxlint.yml @@ -23,7 +23,7 @@ jobs: - uses: taiki-e/checkout-action@v1.3.1 - name: Check version changes - uses: EndBug/version-check@v2 + uses: EndBug/version-check@v2.46.8 id: version with: static-checking: localIsNew @@ -86,12 +86,12 @@ jobs: - uses: taiki-e/checkout-action@v1.3.1 - name: Install cross - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cross - name: Rust Cache - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@v2.46.8 with: shared-key: release-${{ matrix.target }} @@ -204,7 +204,7 @@ jobs: done - name: Create GitHub Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v2.46.8 with: body: ${{ steps.run.outputs.CHANGELOG }} draft: false diff --git a/.github/workflows/release_vscode.yml b/.github/workflows/release_vscode.yml index 08054b1248570..f938653204fbd 100644 --- a/.github/workflows/release_vscode.yml +++ b/.github/workflows/release_vscode.yml @@ -28,7 +28,7 @@ jobs: - uses: taiki-e/checkout-action@v1.3.1 - name: Check vscode version changes - uses: EndBug/version-check@v2 + uses: EndBug/version-check@v2.46.8 id: version with: diff-search: true @@ -81,12 +81,12 @@ jobs: run: pnpm run compile - name: Install cross - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@v2.46.8 with: tool: cross - name: Rust Cache - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@v2.46.8 with: shared-key: release-${{ matrix.target }} From d8c6d047b393f606256147e244137331f1b38d22 Mon Sep 17 00:00:00 2001 From: Boshen Date: Fri, 13 Dec 2024 18:50:33 +0800 Subject: [PATCH 4/4] u --- .github/workflows/autofix.yml | 2 +- .github/workflows/benchmark.yml | 6 +++--- .github/workflows/bloat.yml | 2 +- .github/workflows/cargo-llvm-lines.yml | 2 +- .github/workflows/ci.yml | 18 +++++++++--------- .github/workflows/codecov.yml | 2 +- .github/workflows/deny.yml | 2 +- .github/workflows/miri.yml | 2 +- .github/workflows/prepare_release_crates.yml | 2 +- .github/workflows/release_crates.yml | 2 +- .github/workflows/release_oxlint.yml | 2 +- .github/workflows/release_wasm.yml | 2 +- .github/workflows/reusable_prepare_release.yml | 2 +- 13 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 37cfc6a74cc9c..a3786e5014fd9 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: restore-cache: false tools: just,cargo-shear@1,dprint diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index ad4caffa5f331..7e66fc4ff280f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -66,7 +66,7 @@ jobs: - name: Checkout Branch uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: benchmark-${{ matrix.component }} save-cache: ${{ github.ref_name == 'main' }} @@ -117,7 +117,7 @@ jobs: - name: Checkout Branch uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: benchmark-linter save-cache: ${{ github.ref_name == 'main' }} @@ -208,7 +208,7 @@ jobs: # - name: Checkout Branch # uses: taiki-e/checkout-action@v1.3.1 - # - uses: oxc-project/setup-rust@1.0.0 + # - uses: oxc-project/setup-rust@v1.0.0 # with: # shared-key: benchmark_napi # save-cache: ${{ github.ref_name == 'main' }} diff --git a/.github/workflows/bloat.yml b/.github/workflows/bloat.yml index 4bed26a8a801e..d5f9fadb48f64 100644 --- a/.github/workflows/bloat.yml +++ b/.github/workflows/bloat.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: warm tools: cargo-bloat diff --git a/.github/workflows/cargo-llvm-lines.yml b/.github/workflows/cargo-llvm-lines.yml index 1880c9c0a2a83..7cba5084ae9fa 100644 --- a/.github/workflows/cargo-llvm-lines.yml +++ b/.github/workflows/cargo-llvm-lines.yml @@ -17,7 +17,7 @@ jobs: - name: Checkout uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 - name: Install cargo-llvm-lines uses: taiki-e/install-action@v2.46.8 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62aff4418a3f9..7633b9487b02d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: # warm cache factory for all other CI jobs # cache `target` directory to avoid download crates @@ -107,7 +107,7 @@ jobs: TEST_FLAGS: "-p oxc_ast -p oxc_cfg -p oxc_regular_expression -- --nocapture" steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: wasi save-cache: ${{ github.ref_name == 'main' }} @@ -122,7 +122,7 @@ jobs: steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: wasm save-cache: ${{ github.ref_name == 'main' }} @@ -156,7 +156,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: save-cache: ${{ github.ref_name == 'main' }} cache-key: clippy @@ -177,7 +177,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: warm components: rust-docs @@ -213,7 +213,7 @@ jobs: - uses: ./.github/actions/pnpm if: steps.filter.outputs.src == 'true' - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 if: steps.filter.outputs.src == 'true' with: cache-key: conformance @@ -246,7 +246,7 @@ jobs: - 'crates/oxc_codegen/**' - 'tasks/minsize/**' - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 if: steps.filter.outputs.src == 'true' with: cache-key: minsize @@ -269,7 +269,7 @@ jobs: with: filters: ".github/.generated_ast_watch_list.yml" - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 if: steps.filter.outputs.src == 'true' with: components: rustfmt @@ -310,7 +310,7 @@ jobs: filters: | src: - '!crates/oxc_linter/**' - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 if: steps.filter.outputs.src == 'true' with: cache-key: warm diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 000b965dd27b2..6934341c53cd3 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -26,7 +26,7 @@ jobs: - name: Clone submodules uses: ./.github/actions/clone-submodules - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: codecov save-cache: ${{ github.ref_name == 'main' }} diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index 7e09b4c538b9a..758a32ab33989 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -27,7 +27,7 @@ jobs: steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: restore-cache: false tools: cargo-deny diff --git a/.github/workflows/miri.yml b/.github/workflows/miri.yml index b449c05d9370f..2154c1b5454eb 100644 --- a/.github/workflows/miri.yml +++ b/.github/workflows/miri.yml @@ -32,7 +32,7 @@ jobs: - name: Checkout uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: miri save-cache: ${{ github.ref_name == 'main' }} diff --git a/.github/workflows/prepare_release_crates.yml b/.github/workflows/prepare_release_crates.yml index 737ae09b43447..7c3664a8cfe0d 100644 --- a/.github/workflows/prepare_release_crates.yml +++ b/.github/workflows/prepare_release_crates.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@v1.3.1 - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: warm tools: cargo-release-oxc diff --git a/.github/workflows/release_crates.yml b/.github/workflows/release_crates.yml index 130e69a907875..8c3019881a7f8 100644 --- a/.github/workflows/release_crates.yml +++ b/.github/workflows/release_crates.yml @@ -25,7 +25,7 @@ jobs: token: ${{ secrets.PAT }} # required for git tag push persist-credentials: false - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: warm tools: cargo-release-oxc diff --git a/.github/workflows/release_oxlint.yml b/.github/workflows/release_oxlint.yml index bbbbe317fa308..9e03f91d3f200 100644 --- a/.github/workflows/release_oxlint.yml +++ b/.github/workflows/release_oxlint.yml @@ -156,7 +156,7 @@ jobs: fetch-depth: 0 # for changelog persist-credentials: false - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: restore-cache: false tools: cargo-release-oxc diff --git a/.github/workflows/release_wasm.yml b/.github/workflows/release_wasm.yml index a901e6adc1803..1ffe8188410c3 100644 --- a/.github/workflows/release_wasm.yml +++ b/.github/workflows/release_wasm.yml @@ -50,7 +50,7 @@ jobs: - uses: ./.github/actions/pnpm - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: "wasm" tools: wasm-pack diff --git a/.github/workflows/reusable_prepare_release.yml b/.github/workflows/reusable_prepare_release.yml index 7a6bab3653d8a..11a0d60006396 100644 --- a/.github/workflows/reusable_prepare_release.yml +++ b/.github/workflows/reusable_prepare_release.yml @@ -29,7 +29,7 @@ jobs: fetch-depth: 0 persist-credentials: false - - uses: oxc-project/setup-rust@1.0.0 + - uses: oxc-project/setup-rust@v1.0.0 with: cache-key: warm tools: cargo-release-oxc