Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/agent-restricted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build and Test

on:
push:
branches: ['main']
branches: ['main', 'feat/**']
pull_request:
branches: ['main']
branches: ['main', 'feat/**']

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-failure-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-pr-tarballs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches: ['main']
pull_request:
branches: ['main']
branches: ['main', 'feat/**']
pull_request_target:
branches: ['main']
branches: ['main', 'feat/**']

# Cancel in-progress runs for PRs; never cancel runs on main (merges should not abort each other)
concurrency:
Expand Down
28 changes: 22 additions & 6 deletions .github/workflows/e2e-tests-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ on:
aws_region:
description: 'AWS region for deployment'
default: 'us-east-1'
cdk_branch:
description: 'Branch of CDK constructs repo to build from'
default: 'main'
push:
branches: [main]
branches: [main, 'feat/**']

env:
AGENTCORE_TELEMETRY_DISABLED: '1'
Expand All @@ -32,7 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.ref || 'main' }}
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: '20.x'
Expand All @@ -51,7 +54,7 @@ jobs:
id: aws
run: echo "account_id=$(aws sts get-caller-identity --query Account --output text)" >> "$GITHUB_OUTPUT"
- name: Get API keys from Secrets Manager
uses: aws-actions/aws-secretsmanager-get-secrets@v2
uses: aws-actions/aws-secretsmanager-get-secrets@v3
with:
secret-ids: |
E2E,${{ secrets.E2E_SECRET_ARN }}
Expand All @@ -63,14 +66,27 @@ jobs:
BUILD_PREVIEW: ${{ matrix.cli-build == 'preview' && '1' || '0' }}
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: aws
- name: Build CDK package from main
- name: Build CDK package
run: |
git clone --depth 1 "https://x-access-token:${CDK_REPO_TOKEN}@github.com/${CDK_REPO}.git" /tmp/cdk-repo
if [ -n "${{ inputs.cdk_branch }}" ] && [ "${{ inputs.cdk_branch }}" != "main" ]; then
CDK_BRANCH="${{ inputs.cdk_branch }}"
elif [ "${{ github.ref_name }}" != "main" ]; then
CDK_BRANCH="main"
REPO_URL="https://x-access-token:${CDK_REPO_TOKEN}@github.com/${CDK_REPO}.git"
# Check if a branch exists on the CDK repo with the same name
if git ls-remote --exit-code --heads "$REPO_URL" "${{ github.ref_name }}" > /dev/null 2>&1; then
CDK_BRANCH="${{ github.ref_name }}"
fi
else
CDK_BRANCH="main"
fi
echo "Using CDK branch: $CDK_BRANCH"
git clone --depth 1 --branch "$CDK_BRANCH" "https://x-access-token:${CDK_REPO_TOKEN}@github.com/${CDK_REPO}.git" /tmp/cdk-repo
cd /tmp/cdk-repo
npm ci
npm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
description: 'CDK repo branch to build from (default: main)'
default: 'main'
pull_request_target:
branches: [main]
branches: [main, feat/**]

concurrency:
group: e2e-${{ github.event.pull_request.number || github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Quality and Safety Checks

on:
push:
branches: ['main']
branches: ['main', 'feat/**']
pull_request:
branches: ['main']
branches: ['main', 'feat/**']

permissions:
contents: read
Expand Down
Loading
Loading