chore(ci): pin actions to shas (#3769)
This commit is contained in:
18
.github/workflows/node-ci.yml
vendored
18
.github/workflows/node-ci.yml
vendored
@@ -95,7 +95,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
@@ -136,7 +136,7 @@ jobs:
|
||||
/usr/sbin/update-ccache-symlinks
|
||||
|
||||
- name: Use Node.js from nvmrc
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version-file: 'platform/node/.nvmrc'
|
||||
|
||||
@@ -146,7 +146,7 @@ jobs:
|
||||
|
||||
- name: Set up msvc dev cmd (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
|
||||
|
||||
# Fixes an issue with the image causing builds to fail - https://github.com/actions/runner-images/issues/8598
|
||||
- name: Remove Strawberry Perl from PATH (Windows)
|
||||
@@ -159,7 +159,7 @@ jobs:
|
||||
- name: Setup cmake
|
||||
# linux arm not supported https://github.com/jwlawson/actions-setup-cmake/issues/79
|
||||
if: ${{contains(runner.name, 'GitHub Actions') && matrix.runs-on != 'ubuntu-22.04-arm' }}
|
||||
uses: jwlawson/actions-setup-cmake@v2
|
||||
uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be # v2
|
||||
with:
|
||||
cmake-version: '3.31'
|
||||
|
||||
@@ -169,7 +169,7 @@ jobs:
|
||||
|
||||
- name: Set up ccache (MacOS/Linux)
|
||||
if: runner.os == 'MacOS' || runner.os == 'Linux'
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
uses: hendrikmuhs/ccache-action@63069e3931dedbf3b63792097479563182fe70d1 # v1
|
||||
with:
|
||||
key: ${{ matrix.runs-on }}-${{ env.BUILDTYPE }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }}-${{ github.head_ref }}
|
||||
restore-keys: |
|
||||
@@ -179,7 +179,7 @@ jobs:
|
||||
|
||||
- name: Set up ccache (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
uses: hendrikmuhs/ccache-action@63069e3931dedbf3b63792097479563182fe70d1 # v1
|
||||
with:
|
||||
variant: "sccache"
|
||||
key: ${{ matrix.runs-on }}-${{ env.BUILDTYPE }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }}-${{ github.head_ref }}
|
||||
@@ -189,7 +189,7 @@ jobs:
|
||||
${{ matrix.runs-on }}-${{ env.BUILDTYPE }}-${{ github.job }}
|
||||
|
||||
- name: Cache cmake-node-module deps
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
|
||||
with:
|
||||
# downloaded with platform/node/cmake/module.cmake
|
||||
path: build/headers
|
||||
@@ -220,7 +220,7 @@ jobs:
|
||||
|
||||
- name: Restore vcpkg binary cache
|
||||
if: runner.os == 'Windows'
|
||||
uses: actions/cache/restore@v4
|
||||
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
|
||||
with:
|
||||
path: ${{ github.workspace }}\platform\windows\vendor\vcpkg\archives
|
||||
key: vcpkg-${{ env.VCPKG_COMMIT_ID }}
|
||||
@@ -257,7 +257,7 @@ jobs:
|
||||
|
||||
- name: Upload render test artifacts (MacOS)
|
||||
if: runner.os == 'MacOS' && steps.render_tests.outcome == 'failure'
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: render-query-test-results_${{ runner.os }}_${{ matrix.arch }}
|
||||
path: metrics/macos-xcode11-release-style.html
|
||||
|
||||
Reference in New Issue
Block a user