Skip to content

Commit c4e490a

Browse files
ivanbarlogclaude
andcommitted
chore: use GitHub App credentials via projen instead of PROJEN_GITHUB_TOKEN
Replace default PAT-based self-mutation and upgrade-main PR steps with projen's native GithubCredentials.fromApp() using APP_ID / APP_PRIVATE_KEY. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f43a5bb commit c4e490a

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/upgrade-main.yml

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { awscdk, JsonPatch } from "projen";
1+
import { awscdk, github, JsonPatch } from "projen";
22
import { NodePackageManager, NpmAccess } from "projen/lib/javascript";
33
import { ReleaseTrigger } from "projen/lib/release";
44

@@ -19,6 +19,12 @@ const project = new awscdk.AwsCdkConstructLibrary({
1919
],
2020
description:
2121
"CDK construct which prevents your Lambda functions to transition into `inactive` state.",
22+
githubOptions: {
23+
projenCredentials: github.GithubCredentials.fromApp({
24+
appIdSecret: "APP_ID",
25+
privateKeySecret: "APP_PRIVATE_KEY",
26+
}),
27+
},
2228
jest: false,
2329
jsiiVersion: "~5.9.0",
2430
keywords: ["aws", "lambda", "active"],

0 commit comments

Comments
 (0)