Skip to content

Commit 6a01170

Browse files
authored
Merge pull request #1590 from Adyen/copilot/fix-automated-commits-security
fix: secure workflows with pinned actions and npm ci
2 parents b320a1b + 9a21129 commit 6a01170

7 files changed

Lines changed: 6025 additions & 4042 deletions

File tree

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
format:
10-
if: ${{ github.event.commits != null && !startsWith(github.event.head_commit.message, 'style(fmt)') }}
10+
if: ${{ github.event.commits != null && !startsWith(github.event.head_commit.message, 'style(fmt)') }}
1111
permissions:
1212
contents: write
1313
runs-on: ubuntu-latest
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
node-version: 20.x
2121
- run: |
22-
npm install
22+
npm ci --legacy-peer-deps
2323
npm run lint:fix
2424
- run: |
2525
git config user.name AdyenAutomationBot

.github/workflows/node-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
restore-keys: |
3333
${{ runner.os }}-node-
3434
- name: Install dependencies
35-
run: npm install
35+
run: npm ci --legacy-peer-deps
3636
- name: Lint code
3737
run: npm run lint:fix && npm run lint
3838

@@ -58,6 +58,6 @@ jobs:
5858
restore-keys: |
5959
${{ runner.os }}-node-
6060
- name: Install dependencies
61-
run: npm install
61+
run: npm ci --legacy-peer-deps
6262
- name: Run tests with coverage
6363
run: npm run test:coverage

.github/workflows/npmpublish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
node-version: '18.x'
2121
- name: Install dependencies
22-
run: yarn install --frozen-lockfile
22+
run: npm ci --legacy-peer-deps
2323
- name: Build package
2424
run: npm run build
2525
- name: Run tests
@@ -51,4 +51,3 @@ jobs:
5151
run: npm publish
5252
env:
5353
NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}
54-

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
cache: 'npm'
2626

2727
- name: Install dependencies
28-
run: npm install
28+
run: npm ci --legacy-peer-deps
2929

3030
- name: Run tests with coverage
3131
run: npm run test:coverage

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ node_modules
1313
coverage/
1414
.env
1515
lib/
16-
build/
17-
package-lock.json
16+
build/

0 commit comments

Comments
 (0)