diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b243b69..ce79e69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,15 @@ name: CI on: + # Run on protected public main and on pull requests. push: branches: [main] pull_request: workflow_dispatch: +permissions: + contents: read + jobs: test: name: Test and build @@ -15,11 +19,11 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable branch (2026-10-21) with: components: rustfmt, clippy - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2 - name: Formatting run: cargo fmt --check - name: Clippy