Skip to content

Commit 6a17dda

Browse files
committed
[Tests] replace aud with npm audit
1 parent fdbc867 commit 6a17dda

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

.github/workflows/rebase.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,8 @@ name: Automatic Rebase
22

33
on: [pull_request_target]
44

5-
permissions:
6-
contents: read
7-
85
jobs:
96
_:
10-
permissions:
11-
contents: write # for ljharb/rebase to push code to rebase
12-
pull-requests: read # for ljharb/rebase to get info about PR
13-
14-
name: "Automatic Rebase"
15-
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- uses: actions/checkout@v3
20-
- uses: ljharb/rebase@master
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7+
uses: ljharb/actions/.github/workflows/rebase.yml@main
8+
secrets:
9+
token: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"pretest": "npm run lint",
1717
"tests-only": "tape 'test/**/*.js'",
1818
"test": "npm run tests-only",
19-
"posttest": "aud --production",
19+
"posttest": "npx npm@'>=10.2' audit --production",
2020
"version": "auto-changelog && git add CHANGELOG.md",
2121
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
2222
},
@@ -44,7 +44,6 @@
4444
},
4545
"devDependencies": {
4646
"@ljharb/eslint-config": "^21.1.0",
47-
"aud": "^2.0.3",
4847
"auto-changelog": "^2.4.0",
4948
"eslint": "=8.8.0",
5049
"evalmd": "^0.0.19",

0 commit comments

Comments
 (0)