Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
Expand All @@ -48,15 +48,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10

- name: Initialize CodeQL
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa
uses: github/codeql-action/init@87557b9c84dde89fdd9b10e88954ac2f4248e463
with:
languages: javascript-typescript

- name: Autobuild
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa
uses: github/codeql-action/autobuild@87557b9c84dde89fdd9b10e88954ac2f4248e463

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa
uses: github/codeql-action/analyze@87557b9c84dde89fdd9b10e88954ac2f4248e463
4 changes: 2 additions & 2 deletions .github/workflows/update-homebrew-tap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout pkgmap
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
with:
ref: main

Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
echo "sha256=$SHA" >> $GITHUB_OUTPUT

- name: Checkout homebrew-tap
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
with:
repository: mulhamna/homebrew-tap
token: ${{ secrets.TAP_GITHUB_TOKEN }}
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"dependencies": {
"chalk": "^5.3.0",
"cli-table3": "^0.6.3",
"commander": "^12.0.0",
"commander": "^15.0.0",
"ora": "^9.3.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async function auditPackages(manager, packages) {
if (!ecosystem) return []

const queries = packages.map((pkg) => ({
package: { ecosystem, name: pkg.name },
package: { ecosystem, name: pkg.auditName || pkg.name },
version: pkg.version,
}))

Expand Down
2 changes: 1 addition & 1 deletion src/scanners/conda.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function scan() {
type: 'library',
}))

return { manager: cmd, packages }
return { manager: 'conda', packages }
} catch (err) {
if (err.message?.includes('EACCES') || err.message?.includes('permission')) {
console.warn(`⚠ ${cmd}: permission denied.`)
Expand Down
2 changes: 2 additions & 0 deletions src/scanners/go.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ export function parseGoBinaryMetadata(raw, binaryName) {
if (!hasGoBuildMetadata) return null

const modLine = lines.find((line) => line.startsWith('mod\t'))
const modulePath = modLine?.split(/\s+/)[1] || null
const version = modLine?.split(/\s+/)[2] || 'installed'

return {
name: binaryName,
version,
type: 'binary',
...(modulePath ? { auditName: modulePath } : {}),
}
}

Expand Down
1 change: 1 addition & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ test('parseGoBinaryMetadata keeps only binaries with Go build metadata', () => {
name: 'gopls',
version: 'v0.16.2',
type: 'binary',
auditName: 'golang.org/x/tools/gopls',
})

assert.equal(parseGoBinaryMetadata('not a Go executable', 'random-tool'), null)
Expand Down