Перейти к файлу
dependabot[bot] 5171d3da4a
Bump express from 4.19.2 to 4.21.0 (#52)
Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.21.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 11:37:50 -07:00
.github/workflows Add CI (#33) 2024-03-01 11:27:00 -08:00
.vscode Add internal telemetry (#36) 2024-03-04 16:44:16 -08:00
src Add support for .sarif.json files (#43) 2024-05-22 13:17:36 -07:00
.gitignore Add CI (#33) 2024-03-01 11:27:00 -08:00
LICENSE Add MIT license. 2023-06-22 13:58:41 -07:00
SECURITY.md Microsoft mandatory file 2023-06-02 16:19:26 +00:00
jest.config.js Add test for build.getArtifactsFileEntries. 2021-06-16 18:25:53 -07:00
package-lock.json Bump express from 4.19.2 to 4.21.0 (#52) 2024-09-23 11:37:50 -07:00
package.json Bump webpack from 5.89.0 to 5.94.0 (#49) 2024-09-03 07:56:44 -07:00
readme.md Updates + add showActions param to web component Viewer 2023-02-16 09:49:23 -10:00
tsconfig.json Add test for build.getArtifactsFileEntries. 2021-06-16 18:25:53 -07:00
vss-extension.dev.json Release 0.5.4 (#38) 2024-03-06 09:50:12 -08:00
vss-extension.json Add CI (#33) 2024-03-01 11:27:00 -08:00
vss-extension.md Updates + add showActions param to web component Viewer 2023-02-16 09:49:23 -10:00
vss-extension.png Update icon. 2020-09-24 23:22:37 -07:00
vss-extension.prod.json Release 0.5.6 (#48) 2024-06-11 09:27:34 -07:00
webpack.config.js Include missing CSS in the VSIX (#34) 2024-03-01 14:01:26 -08:00

readme.md

SARIF SAST Scans Tab

See vss-extension.md for public facing info. This is for contributors/developers.

Development: DevOps Dev

  • npm run publish-dev
  • go to: https://dev.azure.com/jeffkingms/Project%20Zero/_workitems/edit/1/

Development: DevOps BaseUri

  • npm run publish-dev with baseUri
  • go to: https://localhost:8080 and bypass the chrome warning.
  • go to: https://dev.azure.com/jeffkingms/Project%20Zero/_workitems/edit/1/

Deployment

Verify vss-extension.prod.json property version is incremented. If not, you risk overriting an old vsix.

npx webpack
npx tfx extension create --output-path: vsix --overrides-file vss-extension.prod.json

This creates a file in your ./vsix folder named sariftools.scans-0.1.0.vsix (version number will differ).

Upload the vsix file to https://marketplace.visualstudio.com/manage/publishers/YOUR_PUBLISHER_ID. On that page, find the matching extension, choose , and choose Update.

Remember to commit any vss-extension.json version changes.

New API

import('azure-devops-extension-sdk').init() results in "No handler found on any channel for message" and "Error: Cannot get registered instance for : JeffKingO.scans-dev.workitem-tab"

import * as SDK from 'azure-devops-extension-sdk'
import { IWorkItemFormService, WorkItemTrackingServiceIds } from 'azure-devops-extension-api/WorkItemTracking'

SDK.init({
	applyTheme: true,
	loaded: true,
})
;(async () => {
	await SDK.ready()
	console.info('Version', SDK.getExtensionContext().version)

	const workItem = await SDK.getService<IWorkItemFormService>(WorkItemTrackingServiceIds.WorkItemFormService)
	const relations = await workItem.getWorkItemRelations()
	console.log(relations)
})()