From bd32722f0687903d9a14ee35f707325a38e643e8 Mon Sep 17 00:00:00 2001 From: Josh Kodroff Date: Mon, 4 Nov 2024 13:56:50 -0500 Subject: [PATCH] Fix linting. --- aws-ts-oidc-provider-pulumi-cloud/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aws-ts-oidc-provider-pulumi-cloud/index.ts b/aws-ts-oidc-provider-pulumi-cloud/index.ts index 7256df614..16214b093 100644 --- a/aws-ts-oidc-provider-pulumi-cloud/index.ts +++ b/aws-ts-oidc-provider-pulumi-cloud/index.ts @@ -13,7 +13,7 @@ const pulumiOrg = pulumi.getOrganization(); // NOTE: At the time of writing, if you are still using the legacy "default" // organization, the format for the audience OIDC claim is different. Best // practice is to avoid using the legacy default project. -const oidcAudience = escProject == "default" ? pulumiOrg : `aws:${pulumiOrg}`; +const oidcAudience = escProject === "default" ? pulumiOrg : `aws:${pulumiOrg}`; const oidcIdpUrl: string = "https://api.pulumi.com/oidc"; @@ -50,6 +50,7 @@ const role = new aws.iam.Role("pulumi-cloud-admin", { assumeRolePolicy: policyDocument.json, }); +// tslint:disable-next-line:no-unused-expression new aws.iam.RolePolicyAttachment("policy", { policyArn: "arn:aws:iam::aws:policy/AdministratorAccess", role: role.name, @@ -70,6 +71,7 @@ values: AWS_SESSION_TOKEN: \${aws.login.sessionToken} `; +// tslint:disable-next-line:no-unused-expression new pulumiservice.Environment("aws-esc-oidc-env", { organization: pulumiOrg, project: escProject, @@ -77,4 +79,4 @@ new pulumiservice.Environment("aws-esc-oidc-env", { yaml: envYaml.apply(yaml => new pulumi.asset.StringAsset(yaml)), }); -export const escEnvironment = pulumi.interpolate`${escProject}/${escEnvName}`; \ No newline at end of file +export const escEnvironment = pulumi.interpolate`${escProject}/${escEnvName}`;