diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ee714f..093c1ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: name: Lint and format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -34,7 +34,7 @@ jobs: components: rustfmt, clippy - name: Cache cargo - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2 - name: Format check run: cargo fmt --all -- --check @@ -55,13 +55,13 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache cargo - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2 - name: Install nextest uses: taiki-e/install-action@nextest @@ -94,8 +94,8 @@ jobs: name: cargo-deny runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: EmbarkStudios/cargo-deny-action@v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2 with: command: check arguments: --all-features diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9ab37c..23c95b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: version: ${{ steps.next.outputs.version }} release_needed: ${{ steps.next.outputs.release_needed }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 persist-credentials: false @@ -79,7 +79,7 @@ jobs: needs: version if: needs.version.outputs.release_needed == 'true' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 @@ -94,7 +94,7 @@ jobs: targets: x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu - name: Cache cargo - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2 # build-essential supplies the host `cc` that build scripts link with; the # org default runner image does not carry one. @@ -135,7 +135,7 @@ jobs: needs: version if: needs.version.outputs.release_needed == 'true' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 @@ -150,7 +150,7 @@ jobs: targets: x86_64-apple-darwin,aarch64-apple-darwin - name: Cache cargo - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2 - name: Build darwin-amd64 run: | @@ -187,7 +187,7 @@ jobs: env: VERSION: ${{ needs.version.outputs.version }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 persist-credentials: false @@ -209,7 +209,7 @@ jobs: sudo apt-get install -y gettext-base - name: Install Go (for nFPM) - uses: actions/setup-go@v7 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: go-version: ">=1.22" cache: false