From fc2c7ffb714b1439013d08801411c64af2b90a7e Mon Sep 17 00:00:00 2001 From: Pete Markowsky Date: Mon, 18 Sep 2023 15:30:10 -0400 Subject: [PATCH] Used ratchet to pin GitHub actions to specific hashes. (#1184) Pin GitHub actions to a specific version. --- .github/workflows/ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e2c6a0c0..9f61412c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,4 @@ name: CI - on: push: branches: @@ -11,15 +10,13 @@ on: - main paths: - 'Source/**' - jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 - name: Run linters run: ./Testing/lint.sh - build_userspace: strategy: fail-fast: false @@ -27,10 +24,9 @@ jobs: os: [macos-11, macos-12, macos-13] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 - name: Build Userspace run: bazel build --apple_generate_dsym -c opt :release --define=SANTA_BUILD_TYPE=adhoc - unit_tests: strategy: fail-fast: false @@ -38,18 +34,17 @@ jobs: os: [macos-11, macos-12, macos-13] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 - name: Run All Tests run: bazel test :unit_tests --define=SANTA_BUILD_TYPE=adhoc --test_output=errors - test_coverage: runs-on: macos-11 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 - name: Generate test coverage run: sh ./generate_cov.sh - name: Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # ratchet:coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./bazel-out/_coverage/_coverage_report.dat