Skip to content

Commit 6ed6200

Browse files
committed
feat(handle-npm-audit): rename workflow to dependency-security-maintenance
1 parent e348440 commit 6ed6200

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/handle-npm-audit.yml renamed to .github/workflows/dependency-security-maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
working-directory: target-repository
108108
env:
109109
NPM_AUDIT_PR_TABLE_PATH: ${{ runner.temp }}/npm-audit-pr-table.md
110-
run: ../github-actions-repo/node_modules/.bin/tsx ../github-actions-repo/handle-npm-audit/handleNpmAudit.ts
110+
run: ../github-actions-repo/node_modules/.bin/tsx ../github-actions-repo/dependency-security-maintenance/dealWithVulnerabilities.ts
111111

112112
- name: Check for changes
113113
id: changes

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Inputs:
3939

4040
- `branch`: branch to inspect and release from. Defaults to `main`.
4141

42-
## handle-npm-audit
42+
## dependency-security-maintenance
4343

4444
Runs `better-npm-audit`, applies `npm audit fix`, updates `.nsprc` with remaining vulnerability exceptions, and creates or updates a pull request with the current audit result when files changed. If no changes are needed, any open audit pull request is commented on and closed.
4545

@@ -49,7 +49,7 @@ jobs:
4949
permissions:
5050
contents: write
5151
pull-requests: write
52-
uses: js-soft/github-actions/.github/workflows/handle-npm-audit.yml@main
52+
uses: js-soft/github-actions/.github/workflows/dependency-security-maintenance.yml@main
5353
with:
5454
auto-merge-method: ignore-branch-protection
5555
secrets:

handle-npm-audit/handleNpmAudit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ type AuditPrTableRow = {
2929
action: AuditAction
3030
}
3131

32-
handleNpmAudit()
32+
dealWithVulnerabilities()
3333

34-
function handleNpmAudit(): void {
34+
function dealWithVulnerabilities(): void {
3535
const firstAudit = runBetterNpmAudit()
3636
const firstAuditSeverities = readNpmAuditSeveritiesById()
3737
const newVulnerabilityIds = extractUnhandledVulnerabilityIds(firstAudit.output)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"lint": "npm run lint:prettier && npm run lint:tsc",
77
"lint:prettier": "prettier --check .",
8-
"lint:tsc": "tsc -p release-dependency-updates/tsconfig.json --noEmit && tsc -p handle-npm-audit/tsconfig.json --noEmit",
8+
"lint:tsc": "tsc -p release-dependency-updates/tsconfig.json --noEmit && tsc -p dependency-security-maintenance/tsconfig.json --noEmit",
99
"test": "node --import tsx --test release-dependency-updates/src/*.test.ts",
1010
"release-dependency-updates": "node --import tsx release-dependency-updates/src/index.ts"
1111
},

0 commit comments

Comments
 (0)