Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SBOM tool generate command #2

Merged
merged 15 commits into from
Nov 3, 2024
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

version: 2
updates:
- package-ecosystem: "npm"
target-branch: "main"
directory: "/"
- package-ecosystem: 'npm'
target-branch: 'main'
directory: '/'
schedule:
interval: "weekly"
day: "saturday"
time: "06:00"
timezone: "Pacific/Auckland"
interval: 'weekly'
day: 'saturday'
time: '06:00'
timezone: 'Pacific/Auckland'
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
name: Build extension
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Checkout
uses: actions/checkout@v4

- name: NPM Install
run: npm install
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '18.x'

- name: NPM Build
run: npm run build
- name: NPM Install
run: npm install

- name: NPM Package
run: npm run package
- name: NPM Build
run: npm run build

- name: NPM Package
run: npm run package
10 changes: 5 additions & 5 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Codespell
uses: codespell-project/actions-codespell@v2
- name: Checkout
uses: actions/checkout@v4

- name: Codespell
uses: codespell-project/actions-codespell@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
**/node_modules
**/*.js
**/*.vsix
Expand Down
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tsconfig.json
package-lock.json
node_modules
bin
obj
dist
out
README.md
LICENSE
6 changes: 6 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
singleQuote: true
endOfLine: 'auto'
printWidth: 120
quoteProps: consistent
plugins:
- 'prettier-plugin-organize-imports'
Binary file added images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
150 changes: 142 additions & 8 deletions package-lock.json

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

19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "sbom-azure-devops",
"version": "1.1.1",
"version": "1.0.0",
"description": "SBOM Tool Azure DevOps Extension",
"main": "task/index.js",
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check .",
"build": "cp -r node_modules task/node_modules && tsc",
"package": "npx tfx-cli extension create --manifest-globs vss-extension.json"
"package": "npx tfx-cli extension create --manifest-globs vss-extension.json --output-path dist"
},
"keywords": [
"sbom",
Expand All @@ -23,11 +25,18 @@
"url": "https://github.com/rhyskoedijk/sbom-azure-devops/issues"
},
"dependencies": {
"azure-pipelines-task-lib": "^4.17.3"
"@types/axios": "^0.14.4",
"@types/semver": "^7.5.8",
"@vizdom/vizdom-ts-node": "^0.1.17",
"axios": "^1.7.7",
"azure-pipelines-task-lib": "^4.17.3",
"semver": "^7.6.3"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "^22.8.6",
"@types/q": "^1.5.8"
"@types/q": "^1.5.8",
"prettier": "3.3.3",
"prettier-plugin-organize-imports": "4.1.0"
}
}
}
Binary file added task/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading