Declare Forgejo token config as secret ref
This commit is contained in:
parent
6d323393a3
commit
fc50e74989
2 changed files with 14 additions and 0 deletions
|
|
@ -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
13
tests/manifest.spec.ts
Normal 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"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue