From edc4b5c7e3b7493761fd07cf3ae217192dd17924 Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Sat, 17 Feb 2024 01:29:15 +0100 Subject: [PATCH] ci: remove digests from steps, due high maintenance effort --- .github/workflows/audit.yaml | 15 ++++++++------- .github/workflows/ci.yaml | 29 ++++++++++++++++------------- .github/workflows/lint-docs.yaml | 4 ++-- .github/workflows/msrv.yaml | 5 +++-- 4 files changed, 29 insertions(+), 24 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index e2371161..3a400d1a 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -20,14 +20,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - # Ensure that the latest version of Cargo is installed + uses: actions/checkout@v4 + - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 - - uses: rustsec/audit-check@dd51754d4e59da7395a4cd9b593f0ff2d61a9b95 # v1.4.1 + - uses: Swatinem/rust-cache@v2 + + - uses: rustsec/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -36,9 +37,9 @@ jobs: if: ${{ github.repository_owner == 'pace-rs' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@2fad0807be2b6f4402fd9dd4225aa4e91b9ad879 # v1 + - uses: EmbarkStudios/cargo-deny-action@v1 with: command: check bans licenses sources diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c4da16bf..ab5071b2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,9 +20,10 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 + - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable components: rustfmt @@ -36,13 +37,15 @@ jobs: # matrix: # feature: [default] steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 # v4 + - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable components: clippy - - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 + + - uses: Swatinem/rust-cache@v2 - name: Run clippy # run: cargo clippy --all-targets --features ${{ matrix.feature }} -- -D warnings run: cargo clippy --all-targets -- -D warnings @@ -59,22 +62,22 @@ jobs: - os: ubuntu-latest - os: windows-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 # v4 if: github.event_name != 'pull_request' with: fetch-depth: 0 - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 # v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 + - uses: Swatinem/rust-cache@v2 - name: Run Cargo Test # run: cargo test -r --all-targets --features ${{ matrix.feature }} --workspace run: cargo test -r --all-targets --workspace @@ -90,22 +93,22 @@ jobs: - os: ubuntu-latest - os: windows-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 # v4 if: github.event_name != 'pull_request' with: fetch-depth: 0 - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 # v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 + - uses: Swatinem/rust-cache@v2 - name: Run Cargo Doc run: cargo doc --no-deps --all-features --workspace --examples diff --git a/.github/workflows/lint-docs.yaml b/.github/workflows/lint-docs.yaml index db273cab..bd770494 100644 --- a/.github/workflows/lint-docs.yaml +++ b/.github/workflows/lint-docs.yaml @@ -11,9 +11,9 @@ jobs: style: runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 - - uses: dprint/check@2f1cf31537886c3bfb05591c031f7744e48ba8a1 # v2.2 + - uses: dprint/check@v2.2 result: name: Result (Style) diff --git a/.github/workflows/msrv.yaml b/.github/workflows/msrv.yaml index 51ce5612..299fe08d 100644 --- a/.github/workflows/msrv.yaml +++ b/.github/workflows/msrv.yaml @@ -22,9 +22,10 @@ jobs: matrix: crate: [pace-rs, pace_core, pace_cli] steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 + - name: Install cargo-hack - uses: taiki-e/install-action@3ed9916b5427bc0679b294607ea47d1d8007b53f # v2 + uses: taiki-e/install-action@v2 with: tool: cargo-hack