Skip to content

Commit 9e2026e

Browse files
luizstacioDefiCake
authored andcommitted
ci: add pnpm audit and update vunerabilities
1 parent 66634bc commit 9e2026e

File tree

4 files changed

+134
-91
lines changed

4 files changed

+134
-91
lines changed

.github/workflows/pr.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16+
audit-deps:
17+
name: Audit Dependencies
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: FuelLabs/github-actions/setups/node@master
22+
- run: pnpm audit --prod
23+
1624
check-packages-changed:
25+
needs: audit-deps
1726
name: Check if packages have change
1827
runs-on: ubuntu-latest
1928
outputs:
@@ -29,7 +38,7 @@ jobs:
2938
3039
changesets:
3140
name: Changeset Checks
32-
needs: check-packages-changed
41+
needs: [audit-deps, check-packages-changed]
3342
if: ${{ github.head_ref != 'changeset-release/main' && needs.check-packages-changed.outputs.changed == 'true' }}
3443
runs-on: ubuntu-latest
3544
steps:
@@ -42,6 +51,7 @@ jobs:
4251

4352
validate:
4453
runs-on: buildjet-4vcpu-ubuntu-2204
54+
needs: audit-deps
4555
steps:
4656
- uses: actions/checkout@v3
4757
- uses: FuelLabs/github-actions/setups/node@master

package.json

+9
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,14 @@
4040
"devDependencies": {
4141
"@changesets/cli": "^2.26.2",
4242
"@fuel-ts/forc": "0.71.1"
43+
},
44+
"pnpm": {
45+
"overrides": {
46+
"graphql": ">=16.8.1",
47+
"semver": ">=5.7.2",
48+
"axios": ">=1.6.0",
49+
"undici": ">=5.26.2",
50+
"get-func-name": ">=2.0.1"
51+
}
4352
}
4453
}

packages/solidity-contracts/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
"@ethersproject/bytes": "^5.7.0",
4343
"@ethersproject/providers": "^5.7.0",
4444
"@fuel-contracts/merkle-sol": "^0.1.4",
45-
"@nomicfoundation/hardhat-chai-matchers": "^1.0.6",
45+
"@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
4646
"@nomiclabs/hardhat-ethers": "^2.2.1",
4747
"@nomiclabs/hardhat-etherscan": "^3.1.2",
48-
"@openzeppelin/contracts": "^4.8.0",
49-
"@openzeppelin/contracts-upgradeable": "^4.8.0",
48+
"@openzeppelin/contracts": "^4.8.3",
49+
"@openzeppelin/contracts-upgradeable": "^4.8.3",
5050
"@openzeppelin/hardhat-upgrades": "1.26.0"
5151
},
5252
"devDependencies": {

0 commit comments

Comments
 (0)