Declare Forgejo token config as secret ref

This commit is contained in:
Paperclip Bot 2026-06-03 03:01:23 +00:00
parent 6d323393a3
commit fc50e74989
2 changed files with 14 additions and 0 deletions

View file

@ -37,6 +37,7 @@ const manifest: PaperclipPluginManifestV1 = {
forgejoTokenRef: { forgejoTokenRef: {
type: "string", type: "string",
title: "Forgejo Token Secret Ref", title: "Forgejo Token Secret Ref",
format: "secret-ref",
description: "Secret reference for outbound Forgejo API authentication." description: "Secret reference for outbound Forgejo API authentication."
}, },
forgejoOwner: { forgejoOwner: {

13
tests/manifest.spec.ts Normal file
View file

@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";
import manifest from "../src/manifest.js";
describe("manifest", () => {
it("declares the Forgejo token config as a secret ref", () => {
const tokenField = manifest.instanceConfigSchema?.properties?.forgejoTokenRef;
expect(tokenField).toMatchObject({
type: "string",
format: "secret-ref"
});
});
});