Перейти к файлу
Ali Mohamad 01662dde7e
Bump sarif-viewer-component version, dev / prod versions (#54)
* Bump sarif-viewer-component version, dev / prod versions

* Fix whitespace

* Update node version in pipeline

---------

Co-authored-by: Ali Mohamad <alimohamad@microsoft.com>
2024-11-12 16:25:03 -08:00
.github/workflows Bump sarif-viewer-component version, dev / prod versions (#54) 2024-11-12 16:25:03 -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
LICENSE
SECURITY.md
jest.config.js
package-lock.json Bump sarif-viewer-component version, dev / prod versions (#54) 2024-11-12 16:25:03 -08:00
package.json Bump sarif-viewer-component version, dev / prod versions (#54) 2024-11-12 16:25:03 -08:00
readme.md
tsconfig.json
vss-extension.dev.json Bump sarif-viewer-component version, dev / prod versions (#54) 2024-11-12 16:25:03 -08:00
vss-extension.json
vss-extension.md
vss-extension.png
vss-extension.prod.json Bump sarif-viewer-component version, dev / prod versions (#54) 2024-11-12 16:25:03 -08: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)
})()