Files
create-github-app-token/tests/main-oidc-token-permissions-set.test.js

9 lines
353 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { OIDC_ENV, test } from "./main.js";
// Verify `main` authenticates with an OIDC token when `private-key` isn’t set, and that the
// OIDC audience falls back to https://github.com when `GITHUB_SERVER_URL` isn’t set.
await test(() => {
delete process.env.GITHUB_SERVER_URL;
process.env["INPUT_PERMISSION-ISSUES"] = "write";
}, OIDC_ENV);