Skip to content

Commit 071b510

Browse files
authored
ci(actions): fix vulnerabilities (#2206)
* ci(nodejs): use npm ci instead of npm install to enforce lockfile versions * ci(java): pin setup-gradle action version to commit hash
1 parent 81d87ef commit 071b510

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci-nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3232
restore-keys: |
3333
${{ runner.os }}-node-
34-
- run: npm install
34+
- run: npm ci
3535
working-directory: nodejs
3636
- run: npm run lint
3737
working-directory: nodejs

.github/workflows/release-layer-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
java-version: 17
3838

3939
- name: Setup Gradle
40-
uses: gradle/actions/setup-gradle@v5
40+
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
4141

4242
- name: Execute Gradle build
4343
run: |

.github/workflows/release-layer-nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Build
3838
run: |
39-
npm install
39+
npm ci
4040
npm run build
4141
working-directory: nodejs
4242

0 commit comments

Comments
 (0)