From a2636e0bc9a2a1a23aef4aa38a7c0ce3b2888bb3 Mon Sep 17 00:00:00 2001 From: Stacklok Bot Date: Wed, 24 Jan 2024 09:52:10 +0000 Subject: [PATCH] Replace unpinned actions with pinned action --- .github/workflows/main.yml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c6b4e56..e910ffd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,30 +1,22 @@ name: Rust Build - on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] - + branches: [main] env: CARGO_TERM_COLOR: always - jobs: build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install Rust - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - source $HOME/.cargo/env - - - name: Build - run: cargo build --verbose - - - name: Run tests - run: cargo test --verbose + - name: Checkout code + uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 + - name: Install Rust + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source $HOME/.cargo/env + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose