* initial esm conversion Signed-off-by: Brian DeHamer <bdehamer@github.com> * esm'ify jest tests Signed-off-by: Brian DeHamer <bdehamer@github.com> * lint issues Signed-off-by: Brian DeHamer <bdehamer@github.com> * debug mock Signed-off-by: Brian DeHamer <bdehamer@github.com> * glob updated Signed-off-by: Brian DeHamer <bdehamer@github.com> * async all file functions Signed-off-by: Brian DeHamer <bdehamer@github.com> * update @actions/github Signed-off-by: Brian DeHamer <bdehamer@github.com> * update @actions/attest Signed-off-by: Brian DeHamer <bdehamer@github.com> * rebuild package-lock.json Signed-off-by: Brian DeHamer <bdehamer@github.com> * use experimental flag for jest in ci Signed-off-by: Brian DeHamer <bdehamer@github.com> * remove stray istanbul ignore Signed-off-by: Brian DeHamer <bdehamer@github.com> * Optimize getSubjectFromPath to avoid concurrent stat calls Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com> * Fix boundary condition for MAX_SUBJECT_COUNT check Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com> * Improve error message clarity for subject count limit Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com> * Update test to match new error message format Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com> * rebuild dist Signed-off-by: Brian DeHamer <bdehamer@github.com> * Fix parseSBOMFromPath to check file size before reading Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com> * Build package with updated changes Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com> --------- Signed-off-by: Brian DeHamer <bdehamer@github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com>
110 lines
2.7 KiB
JSON
110 lines
2.7 KiB
JSON
{
|
|
"name": "actions/attest",
|
|
"description": "Generate signed attestations for workflow artifacts",
|
|
"version": "3.2.0",
|
|
"author": "",
|
|
"private": true,
|
|
"type": "module",
|
|
"homepage": "https://github.com/actions/attest",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/actions/attest.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/actions/attest/issues"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"attestation"
|
|
],
|
|
"exports": {
|
|
".": "./dist/index.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=24"
|
|
},
|
|
"scripts": {
|
|
"bundle": "npm run format:write && npm run package",
|
|
"ci-test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
"format:write": "prettier --write **/*.ts",
|
|
"format:check": "prettier --check **/*.ts",
|
|
"lint:eslint": "npx eslint",
|
|
"lint:markdown": "npx markdownlint --config .markdown-lint.yml \"*.md\"",
|
|
"lint": "npm run lint:eslint && npm run lint:markdown",
|
|
"package": "ncc build src/index.ts --license licenses.txt",
|
|
"package:watch": "npm run package -- --watch",
|
|
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
"all": "npm run format:write && npm run lint && npm run test && npm run package"
|
|
},
|
|
"license": "MIT",
|
|
"jest": {
|
|
"preset": "ts-jest/presets/default-esm",
|
|
"extensionsToTreatAsEsm": [
|
|
".ts"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"./jest.setup.js"
|
|
],
|
|
"verbose": true,
|
|
"clearMocks": true,
|
|
"testEnvironment": "node",
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"ts"
|
|
],
|
|
"testMatch": [
|
|
"**/*.test.ts"
|
|
],
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/",
|
|
"/dist/"
|
|
],
|
|
"transform": {
|
|
"^.+\\.ts$": [
|
|
"ts-jest",
|
|
{
|
|
"useESM": true
|
|
}
|
|
]
|
|
},
|
|
"coverageReporters": [
|
|
"json-summary",
|
|
"text",
|
|
"lcov"
|
|
],
|
|
"collectCoverage": true,
|
|
"collectCoverageFrom": [
|
|
"./src/**"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@actions/attest": "^3.0.0",
|
|
"@actions/core": "^3.0.0",
|
|
"@actions/github": "^9.0.0",
|
|
"@actions/glob": "^0.6.1",
|
|
"@sigstore/oci": "^0.6.0",
|
|
"csv-parse": "^5.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.2",
|
|
"@jest/globals": "^30.2.0",
|
|
"@sigstore/mock": "^0.11.0",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/make-fetch-happen": "^10.0.4",
|
|
"@types/node": "^25.2.0",
|
|
"@vercel/ncc": "^0.38.4",
|
|
"eslint": "^9.39.2",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-jest": "^29.12.1",
|
|
"jest": "^30.2.0",
|
|
"js-yaml": "^4.1.1",
|
|
"markdownlint-cli": "^0.47.0",
|
|
"nock": "^13.5.6",
|
|
"prettier": "^3.8.1",
|
|
"ts-jest": "^29.4.6",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.54.0",
|
|
"undici": "^7.20.0"
|
|
}
|
|
}
|