Skip to content

1.0.6: Add crypto/rsa-import, integrations/github-app#16

Merged
danopia merged 5 commits intomainfrom
add-github-app
Feb 17, 2026
Merged

1.0.6: Add crypto/rsa-import, integrations/github-app#16
danopia merged 5 commits intomainfrom
add-github-app

Conversation

@danopia
Copy link
Copy Markdown
Member

@danopia danopia commented Feb 17, 2026

Can be used together something like this:

import { importPrivateKey } from "@cloudydeno/bitesized/crypto/rsa-import";
import { GithubAppIdentity } from "@cloudydeno/bitesized/integrations/github-app";

const clientId = Deno.env.get('Github_ClientId');
const privateKey = Deno.env.get('Github_PrivateKey');
const installationId = Deno.env.get('Github_InstallationId');

if (!clientId) throw `Missing Github_ClientId envvar`;
if (!privateKey) throw `Missing Github_PrivateKey envvar`;
if (!installationId) throw `Missing Github_InstallationId envvar`;

const githubApp = new GithubAppIdentity(clientId, await importPrivateKey(privateKey));
const githubToken = await githubApp.fetchInstallationCredential(installationId);
// Can now use `githubToken.token` in Github API requests

@danopia danopia changed the title Create github-app.ts with RSA private key 1.0.6: Create github-app.ts Feb 17, 2026
@danopia danopia changed the title 1.0.6: Create github-app.ts 1.0.6: Add crypto/rsa-import, integrations/github-app Feb 17, 2026
@danopia danopia marked this pull request as ready for review February 17, 2026 11:57
@danopia danopia merged commit 1340397 into main Feb 17, 2026
4 checks passed
@danopia danopia deleted the add-github-app branch February 17, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant