From cc28986d2869514c61b1eb84a73e738578eb04b8 Mon Sep 17 00:00:00 2001 From: Stacklok Bot Date: Wed, 24 Jan 2024 09:51:57 +0000 Subject: [PATCH] Replace unpinned actions with pinned action --- .github/workflows/npm-gulp.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 92ff44b..52684be 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -1,27 +1,21 @@ name: NodeJS with Gulp - on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] - + branches: ["main"] jobs: build: runs-on: ubuntu-latest - strategy: matrix: node-version: [14.x, 16.x, 18.x] - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Build - run: | - npm install + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 + with: + node-version: ${{ matrix.node-version }} + - name: Build + run: | + npm install