mirror of
https://github.com/imjasonh/govulncheck-action
synced 2026-07-07 00:12:55 +00:00
- Install husky, lint-staged, eslint, and prettier dev dependencies - Configure ESLint with basic Node.js rules - Configure Prettier for consistent code formatting - Set up husky pre-commit hook to run lint-staged - Fix build script to use correct path (index.js not src/index.js) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"name": "govulncheck-action",
|
|
"version": "1.0.0",
|
|
"description": "GitHub Action to run govulncheck and annotate vulnerabilities",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"build": "ncc build index.js -o dist --source-map --license licenses.txt",
|
|
"test": "jest",
|
|
"lint": "eslint src/**/*.js",
|
|
"format": "prettier --write 'src/**/*.js'",
|
|
"format:check": "prettier --check 'src/**/*.js'",
|
|
"prepare": "husky",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"test:local": "node test-local.js"
|
|
},
|
|
"keywords": [
|
|
"github",
|
|
"action",
|
|
"govulncheck",
|
|
"vulnerability",
|
|
"security",
|
|
"go"
|
|
],
|
|
"author": "",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"@actions/core": "^1.10.1",
|
|
"@actions/exec": "^1.1.1",
|
|
"@actions/github": "^6.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vercel/ncc": "^0.38.1",
|
|
"eslint": "^9.29.0",
|
|
"husky": "^9.1.7",
|
|
"jest": "^29.7.0",
|
|
"lint-staged": "^16.1.2",
|
|
"prettier": "^3.5.3"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"collectCoverageFrom": [
|
|
"index.js",
|
|
"lib/**/*.js"
|
|
],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"branches": 80,
|
|
"functions": 95,
|
|
"lines": 95,
|
|
"statements": 95
|
|
}
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.js": [
|
|
"prettier --write"
|
|
]
|
|
}
|
|
}
|