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 marketplace/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
<section class="market-submit"><div class="wrap submit-grid"><div><p class="eyebrow">Make the ecosystem bigger</p><h2>Your integration belongs here.</h2></div><div><p>Connect a framework, platform, policy engine, or governance product to the AgenTrust stack. The submission path is public, self-serve, and governed by the same rules for everyone.</p><a class="button primary" href="https://github.com/agentrust-io/integrations/blob/main/CONTRIBUTING.md">List your integration ↗</a></div></div></section>
</main>
<footer class="site-footer"><div class="wrap foot-in"><div class="foot-brand"><a class="wordmark" href="/">agentrust<span>.</span>io</a><p class="tagline">Open infrastructure for verifiable AI agents.</p></div><div class="foot-links"><a href="https://github.com/agentrust-io">GitHub</a><a href="https://discord.gg/9JWNpH7E">Discord</a><a href="/">Ecosystem</a></div></div><div class="wrap foot-legal">Marketplace listings describe technical integrations, not endorsement, certification, or commercial availability.</div></footer>
<script src="/marketplace/marketplace.js?v=3"></script>
<script src="/marketplace/marketplace.js?v=4"></script>
</body></html>
6 changes: 4 additions & 2 deletions marketplace/marketplace.js

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

14 changes: 14 additions & 0 deletions marketplace/marketplace.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

const assert = require('node:assert/strict');
const { escape, safeUrl } = require('./marketplace.js');

assert.equal(
escape('" onmouseover="alert(1)" <script>'),
'&quot; onmouseover=&quot;alert(1)&quot; &lt;script&gt;'
);
assert.equal(safeUrl('javascript:alert(1)'), '#');
assert.equal(safeUrl('data:text/html,<script>alert(1)</script>'), '#');
assert.equal(safeUrl('http://example.com/insecure'), '#');
assert.equal(safeUrl('not a URL'), '#');
assert.equal(safeUrl('https://github.com/agentrust-io/integrations'), 'https://github.com/agentrust-io/integrations');