feat: initial version (#1)
Some checks failed
/ demo (push) Has been cancelled

Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
Co-authored-by: Gregor Martynus <gr2m@users.noreply.github.com>
This commit is contained in:
Gregor Martynus
2023-06-08 17:04:10 -07:00
committed by GitHub
parent abcb015889
commit f45685208f
14 changed files with 24977 additions and 3 deletions

20
lib/post.js Normal file
View File

@@ -0,0 +1,20 @@
// @ts-check
import core from "@actions/core";
import { request } from "@octokit/request";
/**
* @param {core} core
* @param {request} request
*/
export async function post(core, request) {
const token = core.getState("token");
await request("DELETE /installation/token", {
headers: {
authorization: `token ${token}`,
},
});
core.info("Token revoked");
}