From 7325b986d6b2487686574ca451bb51fb057345c1 Mon Sep 17 00:00:00 2001 From: Dana Breseman <142491015+dbreseman@users.noreply.github.com> Date: Tue, 31 Mar 2026 10:46:43 +0200 Subject: [PATCH 1/2] Add workflow to check and warn about settings.json changes This workflow checks for changes to the .claude/settings.json file and comments on pull requests with guidance on modifying shared settings. --- .github/workflows/claude-settings-warning.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/claude-settings-warning.yml diff --git a/.github/workflows/claude-settings-warning.yml b/.github/workflows/claude-settings-warning.yml new file mode 100644 index 00000000000..fc7de09076f --- /dev/null +++ b/.github/workflows/claude-settings-warning.yml @@ -0,0 +1,44 @@ +name: Check Claude Settings + +on: + pull_request: + paths: + - '.claude/settings.json' + +jobs: + check-settings: + runs-on: ubuntu-latest + steps: + - name: Check for settings.json changes + uses: actions/github-script@v7 + with: + script: | + const comment = `⚠️ **Claude Settings Warning** + + You've modified \`.claude/settings.json\`. This file contains the shared configuration for all contributors. + + **If you're changing AWS_PROFILE:** + The default profile name is \`my-sandbox\`. If your AWS profile has a different name, override it locally instead of changing the shared file. + + Create or edit \`.claude/settings.local.json\` in the repo root: + + \`\`\`json + { + "env": { + "AWS_PROFILE": "your-sandbox-name" + } + } + \`\`\` + + This local file is gitignored and will override the repo default. + + **Only modify \`.claude/settings.json\` if you're changing shared configurations that apply to everyone and have discussed this change with the TW team.**`; + + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: comment + }); + + core.setFailed('Settings.json was modified - see comment for guidance'); From 3244a6e05ab72e569db802bbcaad7714963fddcf Mon Sep 17 00:00:00 2001 From: Dana Breseman <142491015+dbreseman@users.noreply.github.com> Date: Tue, 31 Mar 2026 10:47:19 +0200 Subject: [PATCH 2/2] Update AWS profile in settings.json --- .claude/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index b26bb12516e..5d87853f81a 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -3,7 +3,7 @@ "CLAUDE_CODE_ENABLE_TELEMETRY": "0", "DISABLE_TELEMETRY": "1", "OTEL_METRICS_EXPORTER": "otlp", - "AWS_PROFILE": "my-sandbox", + "AWS_PROFILE": "my-sandbox-1", "AWS_REGION": "eu-central-1", "CLAUDE_CODE_USE_BEDROCK": "1", "ANTHROPIC_MODEL": "eu.anthropic.claude-sonnet-4-5-20250929-v1:0",