A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
const test = require('node:test');
const assert = require('node:assert/strict');
const path = require('path');
const { spawnSync } = require('child_process');
const SCRIPT = path.join(__dirname, '..', '..', 'skills', 'scan-code', 'scripts', 'run-opengrep.js');
function run(args) {
return spawnSync(process.execPath, [SCRIPT, ...args], { encoding: 'utf8' });
}
test('run-opengrep.js --help exits 0 and prints usage', () => {
const res = run(['--help']);
assert.equal(res.status, 0, `stderr: ${res.stderr}`);
assert.match(res.stdout, /run-opengrep\.js/);
});
test('run-opengrep.js exits 1 with usage when --projectRoot is missing', () => {
// No args: the script rejects before ever invoking the external opengrep binary,
// so this is safe without opengrep installed.
const res = run([]);
assert.equal(res.status, 1, `stderr: ${res.stderr}`);
assert.match(res.stderr, /--projectRoot/);
});