mirror of
https://github.com/actions/create-github-app-token.git
synced 2026-12-03 15:09:03 +00:00
19 lines
506 B
JavaScript
19 lines
506 B
JavaScript
import { OIDC_ENV } from "./main.js";
|
|
|
|
for (const [key, value] of Object.entries({
|
|
...OIDC_ENV,
|
|
"INPUT_CLIENT-ID": "",
|
|
"INPUT_APP-ID": "123456",
|
|
ACTIONS_ID_TOKEN_REQUEST_URL: "https://oidc.example/token",
|
|
})) {
|
|
process.env[key] = value;
|
|
}
|
|
|
|
const _error = console.error;
|
|
console.error = (err) => _error(err?.message ?? err);
|
|
|
|
// Verify the deprecated `app-id` input is rejected for OIDC authentication.
|
|
const { default: promise } = await import("../main.js");
|
|
await promise;
|
|
process.exitCode = 0;
|