From ef3c3a36c6e0bea5d43557f95129fc2a2e759cd9 Mon Sep 17 00:00:00 2001 From: Danny Steenman Date: Mon, 19 Aug 2024 22:14:27 +0200 Subject: [PATCH] ci(github): update secrets and PR lint types --- .github/workflows/auto-approve.yml | 2 +- .github/workflows/pull-request-lint.yml | 5 +++++ .projenrc.ts | 16 ++++++++++++++-- README.md | 10 +++++----- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 22d7cd9..9490690 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -18,4 +18,4 @@ jobs: steps: - uses: hmarr/auto-approve-action@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }} diff --git a/.github/workflows/pull-request-lint.yml b/.github/workflows/pull-request-lint.yml index 2c1c658..ea9ddce 100644 --- a/.github/workflows/pull-request-lint.yml +++ b/.github/workflows/pull-request-lint.yml @@ -24,5 +24,10 @@ jobs: types: |- feat fix + build chore + ci + docs + style + refactor requireScope: false diff --git a/.projenrc.ts b/.projenrc.ts index 45c4965..2037add 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -30,17 +30,22 @@ const project = new awscdk.AwsCdkTypeScriptApp({ authorOrganization: true, name: 'aws-cdk-starterkit', description: 'Create and deploy an AWS CDK app on your AWS account in less than 5 minutes using GitHub actions!', - cdkVersion: '2.150.0', // Find the latest CDK version here: https://www.npmjs.com/package/aws-cdk-lib + cdkVersion: '2.152.0', // Find the latest CDK version here: https://www.npmjs.com/package/aws-cdk-lib cdkVersionPinning: true, defaultReleaseBranch: 'main', packageManager: NodePackageManager.NPM, minNodeVersion: nodeVersion, - projenVersion: '0.84.8', // Find the latest projen version here: https://www.npmjs.com/package/projen + projenVersion: '0.85.2', // Find the latest projen version here: https://www.npmjs.com/package/projen projenrcTs: true, release: true, deps: ['aws-cdk-github-oidc', 'cloudstructs'] /* Runtime dependencies of this module. */, autoApproveOptions: { allowedUsernames: ['dependabot', 'dependabot[bot]', 'github-bot', 'github-actions[bot]'], + /** + * The name of the secret that has the GitHub PAT for auto-approving PRs. + * Generate a new PAT (https://github.com/settings/tokens/new) and add it to your repo's secrets + */ + secret: 'PROJEN_GITHUB_TOKEN', }, dependabot: true, dependabotOptions: { @@ -54,6 +59,13 @@ const project = new awscdk.AwsCdkTypeScriptApp({ }, ignore: [{ dependencyName: 'aws-cdk-lib' }, { dependencyName: 'aws-cdk' }], }, + githubOptions: { + pullRequestLintOptions: { + semanticTitleOptions: { + types: ['feat', 'fix', 'build', 'chore', 'ci', 'docs', 'style', 'refactor'], + }, + }, + }, pullRequestTemplateContents: [ '## Pull request checklist\n', 'Please check if your PR fulfills the following requirements:\n', diff --git a/README.md b/README.md index 4c10e21..21f9c47 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [![AWS CDK Starterkit header](https://raw.githubusercontent.com/dannysteenman/aws-cdk-starterkit/main/icons/github-header-image.png)](https://towardsthecloud.com) +# [![AWS CDK Starterkit header](./icons/github-header-image.png)](https://towardsthecloud.com) # AWS CDK Starterkit @@ -13,7 +13,7 @@ Welcome to the starting line of your next AWS CDK project. This repository is crafted to supercharge your project's setup with AWS CDK TypeScript, projen, and GitHub actions, ensuring a smooth and efficient deployment to your AWS account. > [!TIP] -> [Unlock AWS CDK's Full Potential - Partner with Us!](#unlock-aws-cdks-full-potential---partner-with-us) +> [Unlock the full potention of your infrastructure - Partner with Us!](#unlock-the-full-potention-of-your-infrastructure---partner-with-us) ## Features @@ -143,14 +143,14 @@ When you create a new feature branch and push it to the repository, the GitHub A Additionally, the workflow includes a separate task to destroy the CDK stacks for the feature branch when the branch is deleted or the pull request is closed, ensuring that the resources are cleaned up after the testing is complete. -## Unlock AWS CDK's Full Potential - Partner with Us! +## Unlock the full potention of your infrastructure - Partner with us! > [!TIP] -> In the ever-evolving cloud landscape, your infrastructure should be your greatest asset, not your biggest headache. At [Towards the Cloud](https://towardsthecloud.com), we transform complex AWS challenges into powerful, scalable solutions. +> Supercharge Your AWS Infrastructure with [Towards the Cloud](https://towardsthecloud.com). We ship well-architected, resilient, and cost-optimized AWS solutions designed to scale using Infrastructure as Code (IaC), tailoring cloud-native systems for businesses of all sizes. > > Our Approach: > -> - **Tailored CDK Solutions**: Custom-built for your unique business needs +> - **Tailored AWS Solutions**: Custom-built for your unique business needs > - **Future-Proof Architecture**: Scalable designs that grow with you > - **Empowerment Through Ownership**: Your vision, your infrastructure, our expertise >